mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 00:55:20 +02:00
changes to handing of digging (non backwards-compatible i guess)
This commit is contained in:
@@ -37,6 +37,8 @@ GUITextInputMenu::GUITextInputMenu(gui::IGUIEnvironment* env,
|
||||
GUITextInputMenu::~GUITextInputMenu()
|
||||
{
|
||||
removeChildren();
|
||||
if(m_dest)
|
||||
delete m_dest;
|
||||
}
|
||||
|
||||
void GUITextInputMenu::removeChildren()
|
||||
@@ -173,6 +175,16 @@ bool GUITextInputMenu::OnEvent(const SEvent& event)
|
||||
break;
|
||||
}
|
||||
}
|
||||
if(event.GUIEvent.EventType==gui::EGET_EDITBOX_ENTER)
|
||||
{
|
||||
switch(event.GUIEvent.Caller->getID())
|
||||
{
|
||||
case 256:
|
||||
acceptInput();
|
||||
quitMenu();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return Parent ? Parent->OnEvent(event) : false;
|
||||
|
Reference in New Issue
Block a user