mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
25 lines
639 B
C++
25 lines
639 B
C++
#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();
|
|
void attachToWidget(const ScriptSettings& script, MyGUI::Widget* widget);
|
|
}
|
|
|
|
#endif // !OPENMW_LUAUI_SCRIPTSETTINGS
|