summaryrefslogtreecommitdiff
path: root/src/guiInventoryMenu.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/guiInventoryMenu.h')
-rw-r--r--src/guiInventoryMenu.h8
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;