]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/guiInventoryMenu.h
added simple skybox
[dragonfireclient.git] / src / guiInventoryMenu.h
index acddb5c24866b5f1c69d0277947042bc5486c3ff..10fb7a4250dd11ff0403cd0b0eaff27547a882df 100644 (file)
@@ -107,12 +107,16 @@ class GUIInventoryMenu : public GUIModalMenu
                        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 @@ class GUIInventoryMenu : public GUIModalMenu
 
        bool OnEvent(const SEvent& event);
        
-private:
+protected:
        v2s32 getBasePos() const
        {
                return padding + AbsoluteRect.UpperLeftCorner;