IsMenuRegistered - 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.

Returns whether a custom menu is registered or not.

Syntax[edit | edit source]

bool Function IsMenuRegistered(string menu) Native Global

Parameters[edit | edit source]

  • menu: The name of the menu to check.

Return Value[edit | edit source]

  • Returns whether the menu is registered or not.

Examples[edit | edit source]

If (UI.IsMenuRegistered("MyMenu"))
    Debug.Trace("MyMenu is registered.")
Else
    Debug.Trace("Could not register MyMenu.")
EndIf

See Also[edit | edit source]