mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Make coordinate calculation more robust, implement Flex widget type
This commit is contained in:
parent
fbc84465c5
commit
788745e004
10 changed files with 181 additions and 25 deletions
|
@ -9,6 +9,7 @@
|
|||
#include "window.hpp"
|
||||
#include "image.hpp"
|
||||
#include "container.hpp"
|
||||
#include "flex.hpp"
|
||||
|
||||
#include "element.hpp"
|
||||
#include "registerscriptsettings.hpp"
|
||||
|
@ -24,8 +25,9 @@ namespace LuaUi
|
|||
MyGUI::FactoryManager::getInstance().registerFactory<LuaTextEdit>("Widget");
|
||||
MyGUI::FactoryManager::getInstance().registerFactory<LuaWindow>("Widget");
|
||||
MyGUI::FactoryManager::getInstance().registerFactory<LuaImage>("Widget");
|
||||
MyGUI::FactoryManager::getInstance().registerFactory<LuaContainer>("Widget");
|
||||
MyGUI::FactoryManager::getInstance().registerFactory<LuaTileRect>("BasisSkin");
|
||||
MyGUI::FactoryManager::getInstance().registerFactory<LuaContainer>("Widget");
|
||||
MyGUI::FactoryManager::getInstance().registerFactory<LuaFlex>("Widget");
|
||||
}
|
||||
|
||||
const std::unordered_map<std::string, std::string>& widgetTypeToName()
|
||||
|
@ -36,6 +38,7 @@ namespace LuaUi
|
|||
{ "LuaTextEdit", "TextEdit" },
|
||||
{ "LuaWindow", "Window" },
|
||||
{ "LuaImage", "Image" },
|
||||
{ "LuaFlex", "Flex" },
|
||||
};
|
||||
return types;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue