mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
changes to handing of digging (non backwards-compatible i guess)
This commit is contained in:
parent
61b5a35384
commit
10b06419ab
14 changed files with 583 additions and 265 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue