Background for Skyrim SE
Member of the Form script
voidfunctionRegisterForMenu(stringmenuName)Native

Description

Wiki Description

Registers the calling form to listen for the UI via Form.OnMenuOpen(...) and Form.OnMenuClose(...). (This function requires SKSE)

Documentation Comment

Registers for OnMenuOpen and OnMenuClose events for the given menu.
Registrations have to be refreshed after each game load.
For a list of valid menu names, see UI.psc.


Caveats

CK Wiki - Notes

None


Parameters

stringmenuName

CK Wiki Description

The UI to listen for.


Examples

kYourForm.RegisterForMenu("ContainerMenu") ; Start listening for the container menu

Auto-Generated Example

string myString__menuName

myForm__toCallFunctionOn.RegisterForMenu(myString__menuName)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.