2021-11-18 15:19:54 +00:00
|
|
|
#ifndef OPENMW_LUAUI_WINDOW
|
|
|
|
#define OPENMW_LUAUI_WINDOW
|
|
|
|
|
|
|
|
#include <optional>
|
|
|
|
|
|
|
|
#include "widget.hpp"
|
2022-01-28 09:31:45 +00:00
|
|
|
#include "text.hpp"
|
2021-11-18 15:19:54 +00:00
|
|
|
|
|
|
|
namespace LuaUi
|
|
|
|
{
|
|
|
|
class LuaWindow : public MyGUI::Widget, public WidgetExtension
|
|
|
|
{
|
|
|
|
MYGUI_RTTI_DERIVED(LuaWindow)
|
|
|
|
|
2021-11-19 15:21:17 +00:00
|
|
|
public:
|
|
|
|
LuaWindow();
|
2022-02-06 20:22:38 +00:00
|
|
|
void updateTemplate() override;
|
|
|
|
void updateProperties() override;
|
2021-11-19 15:21:17 +00:00
|
|
|
|
2021-11-18 15:19:54 +00:00
|
|
|
private:
|
2022-01-28 09:31:45 +00:00
|
|
|
LuaText* mCaption;
|
|
|
|
std::map<MyGUI::Widget*, WidgetExtension*> mActionWidgets;
|
2021-11-18 15:19:54 +00:00
|
|
|
MyGUI::IntPoint mPreviousMouse;
|
|
|
|
MyGUI::IntCoord mChangeScale;
|
|
|
|
|
2021-11-28 11:31:34 +00:00
|
|
|
MyGUI::IntCoord mMoveResize;
|
|
|
|
|
2021-11-18 15:19:54 +00:00
|
|
|
protected:
|
|
|
|
void notifyMousePress(MyGUI::Widget*, int, int, MyGUI::MouseButton);
|
|
|
|
void notifyMouseDrag(MyGUI::Widget*, int, int, MyGUI::MouseButton);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // OPENMW_LUAUI_WINDOW
|