Commit 9cbe7537 authored by Mikhail Paulyshka's avatar Mikhail Paulyshka
Browse files

xvm/battleResults: fix event_dispatcher_showBattleResultsWindow_proxy

parent 8a75429f
Pipeline #375793617 passed with stages
in 2 minutes and 57 seconds
......@@ -28,14 +28,14 @@ import xvm_main.python.config as config
# wait for loading xvm_battleresults_ui.swf
@overrideMethod(event_dispatcher, 'showBattleResultsWindow')
def event_dispatcher_showBattleResultsWindow_proxy(base, arenaUniqueID):
event_dispatcher_showBattleResultsWindow(base, arenaUniqueID)
def event_dispatcher_showBattleResultsWindow_proxy(base, arenaUniqueID, isPostbattle20Enabled = False):
event_dispatcher_showBattleResultsWindow(base, arenaUniqueID, isPostbattle20Enabled)
def event_dispatcher_showBattleResultsWindow(base, arenaUniqueID, cnt=0):
def event_dispatcher_showBattleResultsWindow(base, arenaUniqueID, isPostbattle20Enabled, cnt=0):
if cnt < 5 and not swf_loaded_info.swf_loaded_get('xvm_lobby_ui.swf'):
BigWorld.callback(0, lambda: event_dispatcher_showBattleResultsWindow(base, arenaUniqueID, cnt + 1))
BigWorld.callback(0, lambda: event_dispatcher_showBattleResultsWindow(base, arenaUniqueID, isPostbattle20Enabled, cnt + 1))
else:
base(arenaUniqueID)
base(arenaUniqueID, isPostbattle20Enabled)
@overrideMethod(BattleResultsWindow, 'as_setDataS')
def BattleResultsWindow_as_setDataS(base, self, data):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment