#include "widgetlist.hpp" #include #include "widget.hpp" #include "text.hpp" #include "textedit.hpp" #include "window.hpp" namespace LuaUi { void registerAllWidgets() { MyGUI::FactoryManager::getInstance().registerFactory("Widget"); MyGUI::FactoryManager::getInstance().registerFactory("Widget"); MyGUI::FactoryManager::getInstance().registerFactory("Widget"); MyGUI::FactoryManager::getInstance().registerFactory("Widget"); } const std::unordered_map& widgetTypeToName() { static std::unordered_map types{ { "LuaWidget", "Widget" }, { "LuaText", "Text" }, { "LuaTextEdit", "TextEdit" }, { "LuaWindow", "Window" }, }; return types; } }