mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-08 09:37:53 +00:00
34 lines
883 B
C++
34 lines
883 B
C++
|
#ifndef OPENMW_LUAUI_WINDOW
|
||
|
#define OPENMW_LUAUI_WINDOW
|
||
|
|
||
|
#include <optional>
|
||
|
|
||
|
#include <MyGUI_TextBox.h>
|
||
|
|
||
|
#include "widget.hpp"
|
||
|
|
||
|
namespace LuaUi
|
||
|
{
|
||
|
class LuaWindow : public MyGUI::Widget, public WidgetExtension
|
||
|
{
|
||
|
MYGUI_RTTI_DERIVED(LuaWindow)
|
||
|
|
||
|
private:
|
||
|
// \todo replace with LuaText when skins are properly implemented
|
||
|
MyGUI::TextBox* mCaption;
|
||
|
MyGUI::IntPoint mPreviousMouse;
|
||
|
MyGUI::IntCoord mChangeScale;
|
||
|
|
||
|
protected:
|
||
|
virtual void initialize() override;
|
||
|
virtual void deinitialize() override;
|
||
|
|
||
|
bool setPropertyRaw(std::string_view name, sol::object value) override;
|
||
|
|
||
|
void notifyMousePress(MyGUI::Widget*, int, int, MyGUI::MouseButton);
|
||
|
void notifyMouseDrag(MyGUI::Widget*, int, int, MyGUI::MouseButton);
|
||
|
};
|
||
|
}
|
||
|
|
||
|
#endif // OPENMW_LUAUI_WINDOW
|