mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Lua UI templates
This commit is contained in:
parent
063af50dee
commit
960dd1f708
18 changed files with 521 additions and 257 deletions
|
@ -6,6 +6,7 @@
|
|||
#include "text.hpp"
|
||||
#include "textedit.hpp"
|
||||
#include "window.hpp"
|
||||
#include "image.hpp"
|
||||
|
||||
#include "element.hpp"
|
||||
|
||||
|
@ -18,6 +19,8 @@ namespace LuaUi
|
|||
MyGUI::FactoryManager::getInstance().registerFactory<LuaText>("Widget");
|
||||
MyGUI::FactoryManager::getInstance().registerFactory<LuaTextEdit>("Widget");
|
||||
MyGUI::FactoryManager::getInstance().registerFactory<LuaWindow>("Widget");
|
||||
MyGUI::FactoryManager::getInstance().registerFactory<LuaImage>("Widget");
|
||||
MyGUI::FactoryManager::getInstance().registerFactory<LuaTileRect>("BasisSkin");
|
||||
}
|
||||
|
||||
const std::unordered_map<std::string, std::string>& widgetTypeToName()
|
||||
|
@ -27,6 +30,7 @@ namespace LuaUi
|
|||
{ "LuaText", "Text" },
|
||||
{ "LuaTextEdit", "TextEdit" },
|
||||
{ "LuaWindow", "Window" },
|
||||
{ "LuaImage", "Image" },
|
||||
};
|
||||
return types;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue