Added "inventory_redraw" script function (from Mr.Stalin)

This commit is contained in:
NovaRain
2018-07-08 00:30:26 +08:00
parent 84c7ac0536
commit 2a20209bb8
6 changed files with 37 additions and 0 deletions
+1
View File
@@ -235,6 +235,7 @@
#define intface_is_hidden sfall_func0("intface_is_hidden")
#define intface_redraw sfall_func0("intface_redraw")
#define intface_show sfall_func0("intface_show")
#define inventory_redraw(invSide) sfall_func1("inventory_redraw", invSide)
#define item_weight(obj) sfall_func1("item_weight", obj)
#define lock_is_jammed(obj) sfall_func1("lock_is_jammed", obj)
#define outlined_object sfall_func0("outlined_object")
@@ -486,6 +486,10 @@ Some utility/math functions are available:
- The text is limited to 19 characters
- available colors: 0 - green, 1 - red, 2 - white, 3 - yellow, 4 - dark yellow, 5 - blue, 6 - purple
> void sfall_func1("inventory_redraw", int invSide)
- redraws inventory list in the inventory/use inventory item on/loot/barter screens
- invSide specifies which side needs to be redrawn: 0 - the player, 1 - target (container/NPC in loot/barter screens)
------------------------
------ MORE INFO -------
------------------------