Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ScriptName ExampleMod Extends SKI_WidgetBase
- ; @override SKI_WidgetBase
- Event OnWidgetInit()
- RegisterForMenu("RaceSex Menu")
- RegisterForMenu("Loading Menu")
- EndEvent
- Event OnMenuClose(string menuName)
- If(menuName == "Loading Menu")
- Utility.Wait(1.0)
- EndIf
- SetPlayerName(Game.GetPlayer().GetDisplayName())
- EndEvent
- ; @overrides SKI_WidgetBase
- string Function GetWidgetSource()
- ;../Skyrim/Data/Interface/exported/widgets/
- return "ExampleWidget.swf"
- EndFunction
- ; @overrides SKI_WidgetBase
- string Function GetWidgetType()
- return "ExampleMod"
- EndFunction
- Function SetVisible(bool aValue)
- If(Ready)
- UI.InvokeBool(HUD_MENU, WidgetRoot + ".setVisible", aValue)
- EndIf
- EndFunction
- Function SetPlayerName(string asText)
- If(Ready)
- UI.InvokeString(HUD_MENU, WidgetRoot + ".setPlayerName", asText)
- EndIf
- EndFunction
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement