Fix battlescreen interaction while in chatscreen
This commit is contained in:
parent
5a7304c6fd
commit
6e8067b30b
|
@ -316,6 +316,12 @@
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Public Sub Update(ByRef BattleScreen As BattleScreen)
|
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
|
If CanInteract = True Then
|
||||||
Select Case MenuState
|
Select Case MenuState
|
||||||
Case MenuStates.Main
|
Case MenuStates.Main
|
||||||
|
|
|
@ -1137,10 +1137,17 @@ nextIndex:
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If GameController.IS_DEBUG_ACTIVE = True Or Core.Player.SandBoxMode = True Then
|
Dim canEnd As Boolean = True
|
||||||
If KeyBoardHandler.KeyPressed(Keys.K) = True Then
|
Dim blockinteractscreen() As Screen.Identifications = {Screen.Identifications.PartyScreen, Screen.Identifications.SummaryScreen, Screen.Identifications.PauseScreen, Screen.Identifications.ChatScreen}
|
||||||
Battle.Won = True
|
If blockinteractscreen.Contains(Core.CurrentScreen.Identification) = True Then
|
||||||
EndBattle(False)
|
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
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue