X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2FmodalMenu.h;h=43bb8e1b805ca6d8ff411064e41a4ee825f40d7a;hb=65c09a96f41705bb8e75fc5ff4276342be91ed11;hp=2c512d3ca08eb4fc921272a46f65ca5e00f97800;hpb=1cc40c0a7c260f0562572bc99f39a666a12f1b09;p=minetest.git diff --git a/src/modalMenu.h b/src/modalMenu.h index 2c512d3ca..43bb8e1b8 100644 --- a/src/modalMenu.h +++ b/src/modalMenu.h @@ -31,8 +31,8 @@ class IMenuManager { public: // A GUIModalMenu calls these when this class is passed as a parameter - virtual void createdMenu(GUIModalMenu *menu) = 0; - virtual void deletingMenu(GUIModalMenu *menu) = 0; + virtual void createdMenu(gui::IGUIElement *menu) = 0; + virtual void deletingMenu(gui::IGUIElement *menu) = 0; }; /* @@ -96,6 +96,8 @@ class GUIModalMenu : public gui::IGUIElement WARNING: THIS DEALLOCATES THE MENU FROM MEMORY. Return immediately if you call this from the menu itself. + + (More precisely, this decrements the reference count.) */ void quitMenu() { @@ -106,7 +108,7 @@ class GUIModalMenu : public gui::IGUIElement this->remove(); #ifdef HAVE_TOUCHSCREENGUI if (g_touchscreengui) - g_touchscreengui->Show(); + g_touchscreengui->show(); #endif }