mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-26 23:34:58 +02:00
Fixed PvP client not updating battle menu
This commit is contained in:
parent
183934927e
commit
900e2d38fd
@ -560,6 +560,10 @@
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub UpdateMainMenu(ByVal BattleScreen As BattleScreen)
|
Private Sub UpdateMainMenu(ByVal BattleScreen As BattleScreen)
|
||||||
|
If BattleScreen.ClearMenuTime = True Then
|
||||||
|
_mainMenuItemList.Clear()
|
||||||
|
BattleScreen.ClearMenuTime = False
|
||||||
|
End If
|
||||||
If _mainMenuItemList.Count = 0 Then
|
If _mainMenuItemList.Count = 0 Then
|
||||||
CreateMainMenuItems(BattleScreen)
|
CreateMainMenuItems(BattleScreen)
|
||||||
End If
|
End If
|
||||||
@ -570,10 +574,6 @@
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
UpdateMenuOptions(_mainMenuIndex, _mainMenuNextIndex, _mainMenuItemList.Count)
|
UpdateMenuOptions(_mainMenuIndex, _mainMenuNextIndex, _mainMenuItemList.Count)
|
||||||
If BattleScreen.ClearMenuTime = True Then
|
|
||||||
_mainMenuItemList.Clear()
|
|
||||||
BattleScreen.ClearMenuTime = False
|
|
||||||
End If
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub CreateMainMenuItems(ByVal BattleScreen As BattleScreen)
|
Private Sub CreateMainMenuItems(ByVal BattleScreen As BattleScreen)
|
||||||
|
@ -823,6 +823,8 @@ nextIndex:
|
|||||||
ClientWaitForData = False
|
ClientWaitForData = False
|
||||||
ReceivedPokemonData = False
|
ReceivedPokemonData = False
|
||||||
BattleMenu.Reset()
|
BattleMenu.Reset()
|
||||||
|
ClearMenuTime = True
|
||||||
|
BattleMenu.Update(Me)
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
If Me.IsHost = False And Me.LockData <> "{}" And ReceivedPokemonData = False And ClientWaitForData = False And IsRemoteBattle = True Then
|
If Me.IsHost = False And Me.LockData <> "{}" And ReceivedPokemonData = False And ClientWaitForData = False And IsRemoteBattle = True Then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user