mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Inventory menu changes: Tooltips; dragging; drop from menu. Lag is a bit annoying (even in single player).
This commit is contained in:
parent
a58d725569
commit
c920df748b
4 changed files with 184 additions and 80 deletions
|
@ -136,7 +136,7 @@ public:
|
|||
void regenerateGui(v2u32 screensize);
|
||||
|
||||
ItemSpec getItemAtPos(v2s32 p) const;
|
||||
void drawList(const ListDrawSpec &s);
|
||||
void drawList(const ListDrawSpec &s, int phase);
|
||||
void drawMenu();
|
||||
|
||||
bool OnEvent(const SEvent& event);
|
||||
|
@ -161,6 +161,7 @@ protected:
|
|||
|
||||
ItemSpec *m_selected_item;
|
||||
v2s32 m_pointer;
|
||||
gui::IGUIStaticText *m_tooltip_element;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue