aboutsummaryrefslogtreecommitdiff
path: root/src/modalMenu.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-04-05 00:24:47 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-04-05 00:24:47 +0300
commit389fe31ace38a8f53c210ff5ae823eae1780dfc8 (patch)
tree3d66530794524c140a420e6f6c665c94e7d49162 /src/modalMenu.h
parent042834b09d8d2d814204244e3a64f5fb1cb7582c (diff)
downloadminetest-389fe31ace38a8f53c210ff5ae823eae1780dfc8.tar.gz
minetest-389fe31ace38a8f53c210ff5ae823eae1780dfc8.tar.bz2
minetest-389fe31ace38a8f53c210ff5ae823eae1780dfc8.zip
changed node metadata format to better accomodate future needs and problems
Diffstat (limited to 'src/modalMenu.h')
-rw-r--r--src/modalMenu.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/modalMenu.h b/src/modalMenu.h
index ebbb06cfe..1f6d4d897 100644
--- a/src/modalMenu.h
+++ b/src/modalMenu.h
@@ -46,6 +46,8 @@ public:
IGUIElement(gui::EGUIET_ELEMENT, env, parent, id,
core::rect<s32>(0,0,100,100))
{
+ //m_force_regenerate_gui = false;
+
m_menumgr = menumgr;
m_allow_focus_removal = false;
m_screensize_old = v2u32(0,0);
@@ -76,10 +78,11 @@ public:
video::IVideoDriver* driver = Environment->getVideoDriver();
v2u32 screensize = driver->getScreenSize();
- if(screensize != m_screensize_old)
+ if(screensize != m_screensize_old /*|| m_force_regenerate_gui*/)
{
m_screensize_old = screensize;
regenerateGui(screensize);
+ //m_force_regenerate_gui = false;
}
drawMenu();
@@ -119,7 +122,9 @@ public:
virtual void regenerateGui(v2u32 screensize) = 0;
virtual void drawMenu() = 0;
virtual bool OnEvent(const SEvent& event) { return false; };
-
+
+protected:
+ //bool m_force_regenerate_gui;
private:
IMenuManager *m_menumgr;
// This might be necessary to expose to the implementation if it