CloseMenu - UI

From the Fallout4 CreationKit Wiki
Revision as of 22:49, 11 February 2018 by imported>Qazaaq (added f4se member)
(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.

Closes a menu by its name.

Syntax

bool Function CloseMenu(string menuName) Native Global

Parameters

  • menuName: The name of the menu to be closed.

Return Value

  • Return value does not indicate the menu is closed, only that it sent the message.

Examples

If (UI.CloseMenu("MyMenu"))
    Debug.Trace("MyMenu has been sent the close message.")
Else
    Debug.Trace("Could not send close message to MyMenu.")
EndIf

See Also