mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-01 16:45:35 +00:00
25 lines
634 B
C++
25 lines
634 B
C++
#ifndef OPENMW_LUAUI_SCRIPTSETTINGS
|
|
#define OPENMW_LUAUI_SCRIPTSETTINGS
|
|
|
|
#include <vector>
|
|
#include <string>
|
|
#include <string_view>
|
|
|
|
#include <MyGUI_Widget.h>
|
|
|
|
namespace LuaUi
|
|
{
|
|
struct Element;
|
|
struct ScriptSettings
|
|
{
|
|
std::string mName;
|
|
std::string mSearchHints;
|
|
Element* mElement; // TODO: figure out if this can lead to use after free
|
|
};
|
|
const std::vector<ScriptSettings>& scriptSettings();
|
|
void registerSettings(const ScriptSettings& script);
|
|
void clearSettings();
|
|
void attachToWidget(size_t index, MyGUI::Widget* widget = nullptr);
|
|
}
|
|
|
|
#endif // !OPENMW_LUAUI_SCRIPTSETTINGS
|