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
|
|
|
|
{
|
|
|
|
class 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();
|
2022-01-28 20:35:05 +00:00
|
|
|
void attachToWidget(size_t index, MyGUI::Widget* widget = nullptr);
|
2022-01-25 20:53:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif // !OPENMW_LUAUI_SCRIPTSETTINGS
|