1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-27 17:28:41 +00:00

GUIFormSpecMenu focus fixes

This commit is contained in:
Kahrl 2013-08-19 11:26:51 +02:00
parent 72b9b0fe3a
commit 8548bb75b6
6 changed files with 232 additions and 66 deletions

View file

@ -77,6 +77,15 @@ public:
m_stack.back()->setVisible(true);
}
// Returns true to prevent further processing
virtual bool preprocessEvent(const SEvent& event)
{
if(m_stack.size() != 0)
return m_stack.back()->preprocessEvent(event);
else
return false;
}
u32 menuCount()
{
return m_stack.size();