DumpTileInfoToArray

From GECK
Jump to: navigation, search


A function added by the SUP NVSE Plugin.

Description

Outputs all XML traits and their values in a stringmap array. If no element is specified or it doesn't exist - will provide info on menu element currently highlighted by the mouse cursor.

Syntax

[help]
(Child traits:array_var) DumpTileInfoToArray ComponentPath:string

Example

array_var my_array
array_var Entry
let my_array := DumpTileInfoToArray
foreach Entry <- my_array
     Print "Key is +$Entry["key"] + ",value is" + $Entry["value"]
loop

Example output:
[ Tilename ] : MCM_Trigger
[ visible ] : 1.000000
[ width ] : 370.000000
[ height ] : 48.000000
[ mouseoversound ] : UIMenuFocus
[ x ] : 1301.666626
[ y ] : 288.000000
......


Will output all traits of currently active XML menu element.

See Also