This wiki is a copy of the original Skyrim CK wiki created and maintained by the UESP.net. See CreationKit:Copy Notice for more info.

RegisterCustomMenu - UI

From the Fallout4 CreationKit Wiki
Revision as of 22:43, 11 February 2018 by imported>Qazaaq (changed example)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 RegisterCustomMenu(string menuName, string menuPath, string rootPath, MenuData mData) Native Global

Parameters[edit | edit source]

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

Return Value[edit | edit source]

  • Returns true if the menu was registered.

Examples[edit | edit source]

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

See Also[edit | edit source]