1
0
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:
SmallJoker
2025-05-02 21:26:34 +02:00
committed by GitHub
parent 893a74f9d7
commit 6f3735281f
5 changed files with 29 additions and 16 deletions

View File

@@ -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);