ModUIFloat

From GECK
Jump to: navigation, search


A function added by the New Vegas Script Extender version 6.2.5.

Description

Modifies the numeric value of a float UI trait.
The trait name is of the format "MenuName/ElementName/ElementName/.../TraitName" as defined in the XML hierarchy for the desired menu, i.e. "MessageMenu/NoGlow_Branch/MM_Title/x".

Returns 1 (true) upon successful change, 0 (false) otherwise.

Syntax

[help]
(success:bool) ModUIFloat traitName:string newValue:float

Example

ModUIFloat "MessageMenu/NoGlow_Branch/MM_Title/x" -5 

Notes

  • The traitName argument to Get/Set/ModUI(Float/String) has two extra capabilities. A path segment of "*" matches any child tile, and a path segment suffix of ":N" matches the N'th child tile. This is useful when accessing list box items, where the tile names are either identical, or unpredictable, or both.

See Also