RegisterCustomMenu - UI
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.
Registers a custom menu to be opened later.
SyntaxEdit
bool Function RegisterCustomMenu(string menuName, string menuPath, string rootPath, MenuData mData) Native Global
ParametersEdit
- menuName: The name of the custom menu to be registered.
- menuPath:
- rootPath:
- mData:
Return ValueEdit
- Returns true if the menu was registered.
ExamplesEdit
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