mirror of https://github.com/OpenMW/openmw.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
545 B
C++
27 lines
545 B
C++
3 years ago
|
#ifndef OPENMW_LUAUI_TEXT
|
||
|
#define OPENMW_LUAUI_TEXT
|
||
|
|
||
|
#include <MyGUI_TextBox.h>
|
||
|
|
||
|
#include "widget.hpp"
|
||
|
|
||
|
namespace LuaUi
|
||
|
{
|
||
|
class LuaText : public MyGUI::TextBox, public WidgetExtension
|
||
|
{
|
||
|
MYGUI_RTTI_DERIVED(LuaText)
|
||
|
|
||
|
public:
|
||
|
virtual void initialize() override;
|
||
|
|
||
|
private:
|
||
|
bool mAutoSized;
|
||
|
|
||
|
protected:
|
||
|
virtual MyGUI::IntSize calculateSize() override;
|
||
|
bool setPropertyRaw(std::string_view name, sol::object value) override;
|
||
|
};
|
||
|
}
|
||
|
|
||
|
#endif // OPENMW_LUAUI_TEXT
|