4
Fork 0

Improved MCM migration

master
Eddoursul 2 years ago
parent 1a8a7f16aa
commit b881b673a0
  1. BIN
      Moved MCM from Levelsystem.esp
  2. BIN
      scripts/_00e_configmenu.pex
  3. BIN
      scripts/_00e_ski_playerloadgamealias.pex
  4. 25
      source/scripts/_00e_configmenu.psc
  5. 7
      source/scripts/_00e_ski_playerloadgamealias.psc

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}
;=====================================================================================
; 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 -----------------------------------------------------------------------------------------
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

Loading…
Cancel
Save