1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-06 00:55:50 +00:00

Feat(textedit): Set max text length for lua textEdit boxes to int_max by default

This commit is contained in:
Dave Corley 2023-11-12 23:59:52 +00:00 committed by Zackhasacat
parent e11bee250f
commit d76ae20c29

View File

@ -8,6 +8,7 @@ namespace LuaUi
{
mEditBox = createWidget<MyGUI::EditBox>("LuaTextEdit", MyGUI::IntCoord(0, 0, 0, 0), MyGUI::Align::Default);
mEditBox->eventEditTextChange += MyGUI::newDelegate(this, &LuaTextEdit::textChange);
mEditBox->setMaxTextLength(std::numeric_limits<std::size_t>::max());
registerEvents(mEditBox);
WidgetExtension::initialize();
}