OnMenuOpen - Form

Revision as of 01:23, 11 October 2012 by imported>JustinOther (Initial page creation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

SKSE Member of: UI Script

Minimum required SKSE Version: 1.06.00

Listens for opening of given menu(s) previously registered RegisterForMenu. (This function requires SKSE)

Syntax

Event OnMenuOpen(String MenuName)

Parameters

  • MenuName: The menu(s) listened for.

Return Value

None

Examples

Event OnInit()
	RegisterForMenu("ContainerMenu")
EndEvent
 
Event OnMenuOpen(String MenuName)
	Debug.Trace("A registered menu has opened.")
	If MenuName == "ContainerMenu"
		Debug.Trace("ContainerMenu has been registered and has opened.")
	EndIf
EndEvent

Notes

  • If multiple menus are registered, you'll want to differentiate in the corresponding event body as shown in the example. If only one menu is to be registered, no such differentiation is necessary.

See Also