HudBarSetColor

From GECK
Jump to: navigation, search


A function added by the SUP NVSE Plugin.

Description

Sets the color for a Bar's Element. Returns 1 for success, -1 for failure. See Elements for possible element values.

Syntax

[help]
(success:int) HudBarSetColor barName:string iElement:int Red:float Green:float Blue:float 

Or:

(success:int) HBSetColor barName:string iElement:int Red:float Green:float Blue:float

Example

HudBarSetColor "BarName" 0 255 255 255

Will set Meter color to White.

HudBarSetColor "BarName" 3 255 255 255

Will set Text color to White.

Elements

Number Element
0 Meter
1 Frame
2 Text
3 ImageEx
10 ALL

Notes

  • In order for Color to be applied you need to set Element SystemColor to 0 using HudBarSetSystemColor.

See Also