X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2FguiInventoryMenu.h;h=55d18a851055f2f7cdf8b963bd4475ba6a93d850;hb=4b8e4dae589cabef054991c08eb2cd47c867994a;hp=5336cae8206a1ae9ffea543b66403fa01e37df10;hpb=9d09103e481c4979ebb0130a9dee6265d0d6223b;p=minetest.git 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 rect, - const core::rect *clip); + const core::rect *clip, + ITextureSource *tsrc); class GUIInventoryMenu : public GUIModalMenu { @@ -114,7 +117,8 @@ class GUIInventoryMenu : public GUIModalMenu IMenuManager *menumgr, v2s16 menu_size, InventoryContext *c, - InventoryManager *invmgr + InventoryManager *invmgr, + ITextureSource *tsrc ); ~GUIInventoryMenu(); @@ -130,7 +134,7 @@ class GUIInventoryMenu : public GUIModalMenu 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 @@ class GUIInventoryMenu : public GUIModalMenu InventoryContext *m_c; InventoryManager *m_invmgr; + ITextureSource *m_tsrc; core::array m_init_draw_spec; core::array m_draw_spec;