diff options
author | DS <vorunbekannt75@web.de> | 2020-04-18 17:21:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-18 17:21:10 +0200 |
commit | 4fb6b6afa7329676166bbbccb897bd625155d038 (patch) | |
tree | ca6437170e246525c6273079a9757c9e3e896692 /src/gui/guiInventoryList.h | |
parent | 241bf442608d27df0ce3c74889c357fb5589ab20 (diff) | |
download | minetest-4fb6b6afa7329676166bbbccb897bd625155d038.tar.gz minetest-4fb6b6afa7329676166bbbccb897bd625155d038.tar.bz2 minetest-4fb6b6afa7329676166bbbccb897bd625155d038.zip |
Formspec: allow lists to change size and existence while the formspec is open (#9700)
Fixes #9640.
Diffstat (limited to 'src/gui/guiInventoryList.h')
-rw-r--r-- | src/gui/guiInventoryList.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/guiInventoryList.h b/src/gui/guiInventoryList.h index fd2c3601b..28e95fbbf 100644 --- a/src/gui/guiInventoryList.h +++ b/src/gui/guiInventoryList.h @@ -107,7 +107,7 @@ private: const InventoryLocation m_inventoryloc; const std::string m_listname; - // specifies the width and height of the inventorylist in itemslots + // the specified width and height of the shown inventorylist in itemslots const v2s32 m_geom; // the first item's index in inventory const s32 m_start_item_i; @@ -127,4 +127,7 @@ private: // the index of the hovered item; -1 if no item is hovered s32 m_hovered_i; + + // we do not want to write a warning on every draw + bool m_already_warned; }; |