RegisterBasicCustomMenu - UI

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
This article has been flagged as incomplete.
Please help improve the wiki by learning how to contribute.

F4SE Member of: UI Script
Requires F4SE version 0.6.5 or higher.

Registers a custom menu to be opened later.

Syntax[edit | edit source]

bool Function RegisterBasicCustomMenu(string menuName, string menuPath, string rootPath) Global

Parameters[edit | edit source]

  • menuName: The name of the custom menu to be registered.
  • menuPath:
  • rootPath:

Return Value[edit | edit source]

  • Returns true if the menu was registered.

Examples[edit | edit source]

If (UI.RegisterBasicCustomMenu("MyMenu", "TestMenu", "root1.Menu_mc"))
    Debug.Trace("Registered custom menu called MyMenu.")
Else
    Debug.Trace("Could not register custom menu MyMenu.")
EndIf

See Also[edit | edit source]