AttachUIXML
From GECK
A function added by the JIP NVSE Plugin.
Contents
Description
Generates UI components from an XML file and attaches them at the specified NiNode of the calling reference's loaded 3D model.
Notes
- The name of the target NiNode (1st argument) is case-sensitive.
- The XML file path (2nd argument) is relative to the game's installation path.
- If the components were successfully generated and attached, the function returns 1 (otherwise, 0).
- The attached components can be manipulated using any of the available (and applicable) UI functions.
- Internally, the components are injected into HUDMainMenu menu root.
- The XML must be composed of a single rect parent, with all the other components as its children.
- To remove the attached components, use UnloadUIComponent.
- This function should be considered EXPERIMENTAL, and may change considerably (or be scrapped, altogether) in the future.
Syntax
(successful:0/1) reference.AttachUIXML targetNode:string filePath:string
Example
objectRef.AttachUIXML "AttachXMLNode" "data\menus\my_file.xml"