Fix battlescreen interaction while in chatscreen

This commit is contained in:
JappaWakka 2023-08-04 10:15:18 +02:00
parent 5a7304c6fd
commit 6e8067b30b
2 changed files with 17 additions and 4 deletions

View File

@ -316,6 +316,12 @@
End Sub
Public Sub Update(ByRef BattleScreen As BattleScreen)
Dim blockinteractscreen() As Screen.Identifications = {Screen.Identifications.PartyScreen, Screen.Identifications.SummaryScreen, Screen.Identifications.PauseScreen, Screen.Identifications.ChatScreen}
If blockinteractscreen.Contains(Core.CurrentScreen.Identification) = True Then
CanInteract = False
Else
CanInteract = True
End If
If CanInteract = True Then
Select Case MenuState
Case MenuStates.Main

View File

@ -1137,10 +1137,17 @@ nextIndex:
End If
End If
If GameController.IS_DEBUG_ACTIVE = True Or Core.Player.SandBoxMode = True Then
If KeyBoardHandler.KeyPressed(Keys.K) = True Then
Battle.Won = True
EndBattle(False)
Dim canEnd As Boolean = True
Dim blockinteractscreen() As Screen.Identifications = {Screen.Identifications.PartyScreen, Screen.Identifications.SummaryScreen, Screen.Identifications.PauseScreen, Screen.Identifications.ChatScreen}
If blockinteractscreen.Contains(Core.CurrentScreen.Identification) = True Then
canEnd = False
End If
If canEnd = True Then
If GameController.IS_DEBUG_ACTIVE = True Or Core.Player.SandBoxMode = True Then
If KeyBoardHandler.KeyPressed(Keys.K) = True Then
Battle.Won = True
EndBattle(False)
End If
End If
End If