Background for Fallout 4
Member of the UI script
boolfunctionCloseMenu(stringmenuName)NativeGlobal

Description

Wiki Description

Closes a menu by its name.

Documentation Comment

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


Caveats


Parameters

stringmenuName

CK Wiki Description

The name of the menu to be closed.


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

Auto-Generated Example

string myString__menuName

bool returnedValue = UI.CloseMenu(myString__menuName)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.