Background for Fallout 4
Member of the UI script
boolfunctionRegisterCustomMenu(stringmenuName, stringmenuPath, stringrootPath, UI:MenuDatamData)NativeGlobal

Description

Wiki Description

Registers a custom menu to be opened later.

Documentation Comment

Registers a custom menu to be opened later
e.g.
UI.RegisterBasicCustomMenu("MyMenu", "TestMenu", "root1.Menu_mc")
UI.OpenMenu("MyMenu")
This would open Interface/TestMenu.swf and the root of the menu would be stage.Menu_mc


Parameters

  1. stringmenuName

    CK Wiki Description

    The name of the custom menu to be registered.

  2. stringmenuPath

  3. stringrootPath

  4. UI:MenuDatamData


Examples

If (UI.RegisterCustomMenu("MyMenu", "TestMenu", "root1.Menu_mc", new UI:MenuData))
    Debug.Trace("Registered custom menu called MyMenu.")
Else
    Debug.Trace("Could not register custom menu MyMenu.")
EndIf

Auto-Generated Example

string myString__menuName
string myString__menuPath
string myString__rootPath
UI:MenuData myUI_MenuData__mData

bool returnedValue = UI.RegisterCustomMenu(myString__menuName, myString__menuPath, myString__rootPath, myUI_MenuData__mData)

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.