Improved MCM migration
This commit is contained in:
parent
1a8a7f16aa
commit
b881b673a0
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,2 +1,25 @@
|
|||||||
Scriptname _00E_ConfigMenu extends Quest
|
Scriptname _00E_ConfigMenu extends SKI_ConfigBase
|
||||||
{Obsolete MCM script}
|
{Obsolete MCM script}
|
||||||
|
;=====================================================================================
|
||||||
|
; EVENTS
|
||||||
|
;=====================================================================================
|
||||||
|
|
||||||
|
function OnGameReload()
|
||||||
|
; do nothing
|
||||||
|
endFunction
|
||||||
|
|
||||||
|
function OnConfigManagerReady(String a_eventName, String a_strArg, Float a_numArg, Form a_sender)
|
||||||
|
Quest rSkyUI = Game.GetFormFromFile(0x802, "SkyUI_SE.esp") as Quest
|
||||||
|
if rSkyUI
|
||||||
|
(rSkyUI as SKI_ConfigManager).UnregisterMod(self)
|
||||||
|
endif
|
||||||
|
endFunction
|
||||||
|
|
||||||
|
auto state DoNothing
|
||||||
|
function OnGameReload()
|
||||||
|
UnregisterForModEvent("SKICP_configManagerReady")
|
||||||
|
endFunction
|
||||||
|
function OnConfigManagerReady(String a_eventName, String a_strArg, Float a_numArg, Form a_sender)
|
||||||
|
; do nothing
|
||||||
|
endFunction
|
||||||
|
endstate
|
||||||
|
@ -3,6 +3,9 @@ scriptname _00E_SKI_PlayerLoadGameAlias extends ReferenceAlias
|
|||||||
; EVENTS -----------------------------------------------------------------------------------------
|
; EVENTS -----------------------------------------------------------------------------------------
|
||||||
|
|
||||||
event OnPlayerLoadGame()
|
event OnPlayerLoadGame()
|
||||||
(GetOwningQuest() as _00E_GUI_ActorHealthBar).OnGameReload()
|
Quest bSkyUI = Game.GetFormFromFile(0x802, "SkyUI_SE.esp") as Quest
|
||||||
(GetOwningQuest() as _00E_EnderalMCM).OnGameReload()
|
if bSkyUI
|
||||||
|
(GetOwningQuest() as _00E_GUI_ActorHealthBar).OnGameReload()
|
||||||
|
(GetOwningQuest() as _00E_EnderalMCM).OnGameReload()
|
||||||
|
endif
|
||||||
endEvent
|
endEvent
|
||||||
|
Loading…
x
Reference in New Issue
Block a user