#ifndef OPENMW_LUAUI_SCRIPTSETTINGS #define OPENMW_LUAUI_SCRIPTSETTINGS #include #include #include #include namespace LuaUi { struct Element; struct ScriptSettingsPage { std::string mName; std::string mDescription; Element* mElement; // TODO: figure out if this can lead to use after free }; const std::vector& scriptSettingsPages(); void registerSettingsPage(const ScriptSettingsPage& page); void clearSettings(); void attachToWidget(size_t index, MyGUI::Widget* widget = nullptr); } #endif // !OPENMW_LUAUI_SCRIPTSETTINGS