Inven icon: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
verified via source code
m Change template.
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
'''inven_icon''' returns the value of the current HUD icon for the inventory.
'''inven_icon''' returns the value of the current HUD icon for the inventory.


0 = N/A
There is no value for the space suit, so end-users who want to add it back in have to re-code the HUD.
1 = MedKit
2 = Steroids
3 = HoloDuke
4 = Jetpack
5 = Night Vision Goggles
6 = Scuba Gear
7 = Boots


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 04: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