2021-11-18 15:19:54 +00:00
|
|
|
#ifndef OPENMW_LUAUI_TEXT
|
|
|
|
#define OPENMW_LUAUI_TEXT
|
|
|
|
|
2022-02-06 20:22:38 +00:00
|
|
|
#include <MyGUI_EditBox.h>
|
2021-11-18 15:19:54 +00:00
|
|
|
|
|
|
|
#include "widget.hpp"
|
|
|
|
|
|
|
|
namespace LuaUi
|
|
|
|
{
|
2022-02-06 20:22:38 +00:00
|
|
|
class LuaText : public MyGUI::EditBox, public WidgetExtension
|
2021-11-18 15:19:54 +00:00
|
|
|
{
|
|
|
|
MYGUI_RTTI_DERIVED(LuaText)
|
|
|
|
|
|
|
|
public:
|
2021-11-19 15:21:17 +00:00
|
|
|
LuaText();
|
2022-02-06 20:22:38 +00:00
|
|
|
void initialize() override;
|
|
|
|
void updateProperties() override;
|
2022-01-28 09:31:45 +00:00
|
|
|
void setCaption(const MyGUI::UString& caption) override;
|
2021-11-18 15:19:54 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
bool mAutoSized;
|
|
|
|
|
|
|
|
protected:
|
2024-03-28 19:01:50 +00:00
|
|
|
MyGUI::IntSize calculateSize() const override;
|
2021-11-18 15:19:54 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // OPENMW_LUAUI_TEXT
|