mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-18 02:45:21 +02:00
GUI: restore the Pause Menu after closing the Settings Menu
This commit is contained in:
@@ -76,6 +76,13 @@ public:
|
||||
return m_stack.size();
|
||||
}
|
||||
|
||||
GUIModalMenu *tryGetTopMenu() const
|
||||
{
|
||||
if (m_stack.empty())
|
||||
return nullptr;
|
||||
return dynamic_cast<GUIModalMenu *>(m_stack.back());
|
||||
}
|
||||
|
||||
void deleteFront()
|
||||
{
|
||||
m_stack.front()->setVisible(false);
|
||||
|
Reference in New Issue
Block a user