IsMenuRegistered - UI

From Creation Kit
Jump to: navigation, 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

bool Function IsMenuRegistered(string menu) Native Global

Parameters

  • menu: The name of the menu to check.

Return Value

  • Returns whether the menu is registered or not.

Examples

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

See Also