HudBarSetTextString

From GECK
Jump to: navigation, search
This article is incomplete. You can help by filling in any blank descriptions.
Further information might be found in a section of the discussion page. Please remove this message when no longer necessary.



A function added by the SUP NVSE Plugin.

Description

Sets text for specified bar.

Syntax

[help]
(success:int) HudBarSetTextString barName:string iElement:int Text:string 

Or:

(success:int) HBSetTextString barName:string iElement:int Text:string

Example

HudBarSetTextString "BarName" 0 "MyText" 

Will set Text to your string. It's supposed to be used for text added in addition to Bar types (0-2). Do not use it for types(3-4).

HudBarSetTextString "BarName" 1 "MyPrefix"

This is supposed to be used with bar type of 3 - it will add Prefix text which is shown BEFORE "Value/MaxValue?

HudBarSetTextString "BarName" 2 "MyPostfix"

This is supposed to be used with bar type of 3 - it will add Postfix text which is shown AFTER "Value/MaxValue?

Elements

0 - Main text;
1 - Prefix
2 - PostFix;

Notes

See Also