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:
parent
72b9b0fe3a
commit
8548bb75b6
6 changed files with 232 additions and 66 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue