diff --git a/Moved MCM from Levelsystem.esp b/Moved MCM from Levelsystem.esp index a6e44586..334b898a 100644 Binary files a/Moved MCM from Levelsystem.esp and b/Moved MCM from Levelsystem.esp differ diff --git a/scripts/_00e_configmenu.pex b/scripts/_00e_configmenu.pex index d0bd5e1a..6d52f090 100644 Binary files a/scripts/_00e_configmenu.pex and b/scripts/_00e_configmenu.pex differ diff --git a/scripts/_00e_ski_playerloadgamealias.pex b/scripts/_00e_ski_playerloadgamealias.pex index e98f3776..439f41cb 100644 Binary files a/scripts/_00e_ski_playerloadgamealias.pex and b/scripts/_00e_ski_playerloadgamealias.pex differ diff --git a/source/scripts/_00e_configmenu.psc b/source/scripts/_00e_configmenu.psc index 07c70c46..62d9b6d1 100644 --- a/source/scripts/_00e_configmenu.psc +++ b/source/scripts/_00e_configmenu.psc @@ -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 diff --git a/source/scripts/_00e_ski_playerloadgamealias.psc b/source/scripts/_00e_ski_playerloadgamealias.psc index 3040233b..3ab2cfbc 100644 --- a/source/scripts/_00e_ski_playerloadgamealias.psc +++ b/source/scripts/_00e_ski_playerloadgamealias.psc @@ -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