diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-11-14 00:19:48 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-11-29 19:13:41 +0200 |
commit | abceeee92f99b84ebb79968269835a4f509bfb90 (patch) | |
tree | 669edeca68fae4eb086ac4e4c1846b55d3aa779d /src/guiInventoryMenu.h | |
parent | 5fc791ac9a15ea6f234ca2d23041c83679255746 (diff) | |
download | minetest-abceeee92f99b84ebb79968269835a4f509bfb90.tar.gz minetest-abceeee92f99b84ebb79968269835a4f509bfb90.tar.bz2 minetest-abceeee92f99b84ebb79968269835a4f509bfb90.zip |
Create framework for getting rid of global definitions of node/tool/item/whatever types
Diffstat (limited to 'src/guiInventoryMenu.h')
-rw-r--r-- | src/guiInventoryMenu.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/guiInventoryMenu.h b/src/guiInventoryMenu.h index 5336cae82..55d18a851 100644 --- a/src/guiInventoryMenu.h +++ b/src/guiInventoryMenu.h @@ -26,10 +26,13 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "utility.h" #include "modalMenu.h" +class ITextureSource; + void drawInventoryItem(video::IVideoDriver *driver, gui::IGUIFont *font, InventoryItem *item, core::rect<s32> rect, - const core::rect<s32> *clip); + const core::rect<s32> *clip, + ITextureSource *tsrc); class GUIInventoryMenu : public GUIModalMenu { @@ -114,7 +117,8 @@ public: IMenuManager *menumgr, v2s16 menu_size, InventoryContext *c, - InventoryManager *invmgr + InventoryManager *invmgr, + ITextureSource *tsrc ); ~GUIInventoryMenu(); @@ -130,7 +134,7 @@ public: void regenerateGui(v2u32 screensize); ItemSpec getItemAtPos(v2s32 p) const; - void drawList(const ListDrawSpec &s); + void drawList(const ListDrawSpec &s, ITextureSource *tsrc); void drawMenu(); bool OnEvent(const SEvent& event); @@ -149,6 +153,7 @@ protected: InventoryContext *m_c; InventoryManager *m_invmgr; + ITextureSource *m_tsrc; core::array<DrawSpec> m_init_draw_spec; core::array<ListDrawSpec> m_draw_spec; |