Difference between revisions of "CloseMenu - UI"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
imported>Qazaaq
(added f4se member)
 
imported>Qazaaq
(added see also)
 
Line 27: Line 27:
== See Also ==
== See Also ==
*[[UI Script]]
*[[UI Script]]
 
*[[OpenMenu - UI]]
*[[IsMenuOpen - UI]]


[[Category: Scripting]]
[[Category: Scripting]]

Latest revision as of 21:52, 11 February 2018

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[edit | edit source]

bool Function CloseMenu(string menuName) Native Global

Parameters[edit | edit source]

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

Return Value[edit | edit source]

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

Examples[edit | edit source]

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[edit | edit source]