InjectUIXML

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
< [[::Category:Functions|Category:Functions]]

A function added by the JIP NVSE Plugin.

Description

Injects the contents of an XML file into a menu, at componentPath (see Notes, below).

Syntax

[help]
(successful:0/1) InjectUIXML componentPath:string filePath:string

Example

InjectUIXML "HUDMainMenu" "data\menus\prefabs\list_box.xml"
InjectUIXML "StartMenu\NOGLOW_BRANCH\main_container" "data\menus\my_file.xml"

Notes

  • filePath is relative to the game's installation path.
  • The XML file can either be loose, or packed in a BSA archive.
  • The new components are injected directly into the game's memory - no files on disk are modified (or even accessed).
  • Once injected, all UI functions can be used on the new components.
  • Most menus are loaded in memory only while open, and are unloaded when closed. This means:
    • New components will be injected successfully only if the target menu is currently loaded.
    • New components must be re-injected every time the target menu is re-loaded. The only exceptions are the following menus, which are always loaded (and are never re-loaded): HUDMainMenu, InventoryMenu, MapMenu, RepairMenu, StatsMenu, ItemModMenu.

See Also