diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-04-05 00:24:47 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-04-05 00:24:47 +0300 |
commit | 389fe31ace38a8f53c210ff5ae823eae1780dfc8 (patch) | |
tree | 3d66530794524c140a420e6f6c665c94e7d49162 /src/guiInventoryMenu.h | |
parent | 042834b09d8d2d814204244e3a64f5fb1cb7582c (diff) | |
download | minetest-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/guiInventoryMenu.h')
-rw-r--r-- | src/guiInventoryMenu.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/guiInventoryMenu.h b/src/guiInventoryMenu.h index acddb5c24..10fb7a425 100644 --- a/src/guiInventoryMenu.h +++ b/src/guiInventoryMenu.h @@ -107,12 +107,16 @@ public: gui::IGUIElement* parent, s32 id, IMenuManager *menumgr, v2s16 menu_size, - core::array<DrawSpec> &init_draw_spec, InventoryContext *c, InventoryManager *invmgr ); ~GUIInventoryMenu(); + void setDrawSpec(core::array<DrawSpec> &init_draw_spec) + { + m_init_draw_spec = init_draw_spec; + } + void removeChildren(); /* Remove and re-add (or reposition) stuff @@ -125,7 +129,7 @@ public: bool OnEvent(const SEvent& event); -private: +protected: v2s32 getBasePos() const { return padding + AbsoluteRect.UpperLeftCorner; |