diff options
author | Kahrl <kahrl@gmx.net> | 2012-01-21 21:21:41 +0100 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-01-22 17:31:12 +0200 |
commit | 1efdc36b22532807d21a0beac94524e3eacfe7bc (patch) | |
tree | 9828ccdb11ec7b4e21e9e4558bbb202865aafa14 /src/guiInventoryMenu.h | |
parent | 157a4cf18cb9c098f465b8baecd7d2cd5705f2dd (diff) | |
download | minetest-1efdc36b22532807d21a0beac94524e3eacfe7bc.tar.gz minetest-1efdc36b22532807d21a0beac94524e3eacfe7bc.tar.bz2 minetest-1efdc36b22532807d21a0beac94524e3eacfe7bc.zip |
Inventory menu (with dragging) improved. Crafting is now handled via a IACTION_CRAFT inventory action.
Diffstat (limited to 'src/guiInventoryMenu.h')
-rw-r--r-- | src/guiInventoryMenu.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/guiInventoryMenu.h b/src/guiInventoryMenu.h index 903a8b137..ed8df88fc 100644 --- a/src/guiInventoryMenu.h +++ b/src/guiInventoryMenu.h @@ -137,7 +137,9 @@ public: ItemSpec getItemAtPos(v2s32 p) const; void drawList(const ListDrawSpec &s, int phase); + void drawSelectedItem(); void drawMenu(); + void updateSelectedItem(); bool OnEvent(const SEvent& event); @@ -160,6 +162,9 @@ protected: core::array<ListDrawSpec> m_draw_spec; ItemSpec *m_selected_item; + u32 m_selected_amount; + bool m_selected_dragging; + v2s32 m_pointer; gui::IGUIStaticText *m_tooltip_element; }; |