Improved MCM migration

This commit is contained in:
Eddoursul 2022-08-01 14:42:32 +02:00
parent 1a8a7f16aa
commit b881b673a0
5 changed files with 29 additions and 3 deletions

Binary file not shown.

Binary file not shown.

View File

@ -1,2 +1,25 @@
Scriptname _00E_ConfigMenu extends Quest
Scriptname _00E_ConfigMenu extends SKI_ConfigBase
{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

View File

@ -3,6 +3,9 @@ scriptname _00E_SKI_PlayerLoadGameAlias extends ReferenceAlias
; EVENTS -----------------------------------------------------------------------------------------
event OnPlayerLoadGame()
(GetOwningQuest() as _00E_GUI_ActorHealthBar).OnGameReload()
(GetOwningQuest() as _00E_EnderalMCM).OnGameReload()
Quest bSkyUI = Game.GetFormFromFile(0x802, "SkyUI_SE.esp") as Quest
if bSkyUI
(GetOwningQuest() as _00E_GUI_ActorHealthBar).OnGameReload()
(GetOwningQuest() as _00E_EnderalMCM).OnGameReload()
endif
endEvent