Send SKSE events on spectralization

This commit is contained in:
Eddoursul 2022-08-18 16:07:13 +02:00
parent fb436ea1e5
commit 28ff084978
2 changed files with 3 additions and 1 deletions

View File

@ -205,6 +205,7 @@ Bool Function _ShowMainMenu()
Else ; Quit Else ; Quit
ReleaseApparition() ReleaseApparition()
self.SendModEvent("Enderal_FinishSpectralizing")
GoToState("") GoToState("")
EndIf EndIf
@ -245,6 +246,7 @@ Bool Function ShowEquipApparitionMenu()
Int iChoice = UIExtensions.OpenMenu("UIWheelMenu") Int iChoice = UIExtensions.OpenMenu("UIWheelMenu")
If iChoice == 0 If iChoice == 0
self.SendModEvent("Enderal_StartSpectralizing")
GoToState("Spectralize") GoToState("Spectralize")
Return False Return False
ElseIf iChoice == 1 ElseIf iChoice == 1
@ -280,7 +282,7 @@ State Spectralize
phasmalistControlQuest.OnPlayerItemSpectralized() phasmalistControlQuest.OnPlayerItemSpectralized()
EndIf EndIf
phasmalistControlQuest.spectralizeContainer.clear() phasmalistControlQuest.spectralizeContainer.clear()
self.SendModEvent("Enderal_FinishSpectralizing")
GoToState("Waiting") GoToState("Waiting")
ShowMainMenu() ShowMainMenu()
EndEvent EndEvent