mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Make inventory GUI do sane things when server-side inventory acts unusually
This commit is contained in:
parent
6495007924
commit
e1a495ee30
4 changed files with 105 additions and 4 deletions
|
@ -212,6 +212,12 @@ protected:
|
|||
ItemSpec *m_selected_item;
|
||||
u32 m_selected_amount;
|
||||
bool m_selected_dragging;
|
||||
|
||||
// WARNING: BLACK MAGIC
|
||||
// Used to guess and keep up with some special things the server can do.
|
||||
// If name is "", no guess exists.
|
||||
ItemStack m_selected_content_guess;
|
||||
InventoryLocation m_selected_content_guess_inventory;
|
||||
|
||||
v2s32 m_pointer;
|
||||
gui::IGUIStaticText *m_tooltip_element;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue