Inven icon: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
m Change template.
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
returns the value of the current icon for the inventory. I'm assuming it's in tile order. 0 for none and then 1 upwards.
'''inven_icon''' returns the value of the current HUD icon for the inventory.
 
There is no value for the space suit, so end-users who want to add it back in have to re-code the HUD.
 
== Values ==
 
{{inventory_icons}}


[[Category:Player structure members]]
[[Category:Player structure members]]

Latest revision as of 03:07, 10 January 2021

inven_icon returns the value of the current HUD icon for the inventory.

There is no value for the space suit, so end-users who want to add it back in have to re-code the HUD.

Values

The following values are used with inven_icon. Not be to be confused with addinventory.

Exposed Value Label Description
No 0 ICON_NONE
No 1 ICON_FIRSTAID
No 2 ICON_STEROIDS
No 3 ICON_HOLODUKE
No 4 ICON_JETPACK
No 5 ICON_HEATS
No 6 ICON_SCUBA
No 7 ICON_BOOTS
Defines
define ICON_NONE                        0
define ICON_FIRSTAID                    1
define ICON_STEROIDS                    2
define ICON_HOLODUKE                    3
define ICON_JETPACK                     4
define ICON_HEATS                       5
define ICON_SCUBA                       6
define ICON_BOOTS                       7