GetUIElementType

From GECK
Jump to: navigation, search


A function added by the SUP NVSE Plugin.

Description

Returns type of specified UI Element. If no element is specified or it doesn't exist - will provide info on menu element currently highlighted by the mouse cursor.

Syntax

[help]
(int) GetUIElementType ComponentPath:string

Element types

1 - Rect;
2 - Image;
3 - Text;
4 - 3D;
5 - Menu;

Example

set iType to GetUIElementType "HUDMainMenu"
set iType to GetUIElementType "InventoryMenu/GLOW_BRANCH/IM_MainRect/IM_HotKeyWheel/HK_Item_3/HK_SelectionBox/right" 

See Also