Beispiel #1
0
 def stop(self):
     if self.__state != _STATISTICS_STATE.STOPPED:
         self.__state = _STATISTICS_STATE.STOPPED
         BigWorld.enableBattleFPSCounter(False)
         SettingsCore.g_settingsCore.onSettingsChanged -= self.__onSettingsChanged
         from gui.battle_control import g_sessionProvider
         g_sessionProvider.getDrrScaleCtrl().onDRRChanged -= self.__onDRRChanged
Beispiel #2
0
 def stop(self):
     if self.__state != _STATISTICS_STATE.STOPPED:
         self.__state = _STATISTICS_STATE.STOPPED
         BigWorld.enableBattleFPSCounter(False)
         SettingsCore.g_settingsCore.onSettingsChanged -= self.__onSettingsChanged
         from gui.battle_control import g_sessionProvider
         g_sessionProvider.getDrrScaleCtrl(
         ).onDRRChanged -= self.__onDRRChanged
Beispiel #3
0
 def __updatePrebattle(self, fpsInfo, ping, isLagging):
     if BigWorld.player().arena.period == ARENA_PERIOD.BATTLE and self.__state == _STATISTICS_STATE.STARTED:
         BigWorld.enableBattleFPSCounter(True)
         SettingsCore.g_settingsCore.onSettingsChanged += self.__onSettingsChanged
         from gui.battle_control import g_sessionProvider
         g_sessionProvider.getDrrScaleCtrl().onDRRChanged += self.__onDRRChanged
         self.__state = _STATISTICS_STATE.IN_PROGRESS
         self.__updateFunc = self.__updateBattle
         self.__updateFunc(fpsInfo, ping, isLagging)
Beispiel #4
0
 def __updatePrebattle(self, fpsInfo, ping, isLagging):
     if BigWorld.player(
     ).arena.period == ARENA_PERIOD.BATTLE and self.__state == _STATISTICS_STATE.STARTED:
         BigWorld.enableBattleFPSCounter(True)
         SettingsCore.g_settingsCore.onSettingsChanged += self.__onSettingsChanged
         from gui.battle_control import g_sessionProvider
         g_sessionProvider.getDrrScaleCtrl(
         ).onDRRChanged += self.__onDRRChanged
         self.__state = _STATISTICS_STATE.IN_PROGRESS
         self.__updateFunc = self.__updateBattle
         self.__updateFunc(fpsInfo, ping, isLagging)