mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Add Container widget type, use it to make Adapter code less hacky
This commit is contained in:
parent
086a7d9bc5
commit
f07f05ddd3
9 changed files with 107 additions and 35 deletions
|
@ -8,6 +8,7 @@
|
|||
#include "textedit.hpp"
|
||||
#include "window.hpp"
|
||||
#include "image.hpp"
|
||||
#include "container.hpp"
|
||||
|
||||
#include "element.hpp"
|
||||
#include "scriptsettings.hpp"
|
||||
|
@ -23,6 +24,7 @@ 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");
|
||||
}
|
||||
|
||||
|
@ -34,6 +36,7 @@ namespace LuaUi
|
|||
{ "LuaTextEdit", "TextEdit" },
|
||||
{ "LuaWindow", "Window" },
|
||||
{ "LuaImage", "Image" },
|
||||
{ "LuaContainer", "Container" },
|
||||
};
|
||||
return types;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue