]> git.lizzy.rs Git - minetest.git/blobdiff - src/modalMenu.h
Set acceleration only once in falling node
[minetest.git] / src / modalMenu.h
index 2c512d3ca08eb4fc921272a46f65ca5e00f97800..43bb8e1b805ca6d8ff411064e41a4ee825f40d7a 100644 (file)
@@ -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
        }