1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00:00

Formspec: allow lists to change size and existence while the formspec is open (#9700)

Fixes #9640.
This commit is contained in:
DS 2020-04-18 17:21:10 +02:00 committed by GitHub
parent 241bf44260
commit 4fb6b6afa7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 36 additions and 41 deletions

View file

@ -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;
};