1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-05 15:55:45 +00:00
OpenMW/components/lua_ui/scriptsettings.hpp

26 lines
653 B
C++
Raw Normal View History

2022-01-25 20:53:00 +00:00
#ifndef OPENMW_LUAUI_SCRIPTSETTINGS
#define OPENMW_LUAUI_SCRIPTSETTINGS
#include <vector>
#include <string>
#include <string_view>
#include <MyGUI_Widget.h>
namespace LuaUi
{
2022-01-28 20:45:13 +00:00
struct Element;
struct ScriptSettingsPage
2022-01-25 20:53:00 +00:00
{
std::string mName;
std::string mDescription;
2022-01-25 20:53:00 +00:00
Element* mElement; // TODO: figure out if this can lead to use after free
};
const std::vector<ScriptSettingsPage>& scriptSettingsPages();
void registerSettingsPage(const ScriptSettingsPage& page);
2022-01-25 20:53:00 +00:00
void clearSettings();
void attachToWidget(size_t index, MyGUI::Widget* widget = nullptr);
2022-01-25 20:53:00 +00:00
}
#endif // !OPENMW_LUAUI_SCRIPTSETTINGS