def __cleanupAfterTimeWarp(self): BigWorld.wg_clearDecals() if self.__replayCtrl.isTimeWarpInProgress: self.__enableInGameEffects(False) self.__timeWarpCleanupCb = BigWorld.callback( 0, self.__cleanupAfterTimeWarp) else: if self.__timeWarpCleanupCb is not None: BigWorld.cancelCallback(self.__timeWarpCleanupCb) self.__timeWarpCleanupCb = None self.__warpTime = -1.0 if not self.__rewind: BigWorld.wg_enableGUIBackground(False, False) self.__enableInGameEffects(0.0 < self.__playbackSpeedModifiers[ self.__playbackSpeedIdx] < 8.0) g_replayEvents.onMuteSound( not 0.0 < self.__playbackSpeedModifiers[ self.__playbackSpeedIdx] < 8.0) if self.__wasVideoBeforeRewind: BigWorld.player().inputHandler.onControlModeChanged( 'video', prevModeName='arcade', camMatrix=self.__videoCameraMatrix) self.__wasVideoBeforeRewind = False g_replayEvents.onTimeWarpFinish()
def __cleanupAfterTimeWarp(self): self.__warpTime = -1.0 self.__enableInGameEffects( 0.0 < self.__playbackSpeedModifiers[self.__playbackSpeedIdx] < 8.0) mute = not 0.0 < self.__playbackSpeedModifiers[ self.__playbackSpeedIdx] < 8.0 g_replayEvents.onMuteSound(mute) if self.__wasVideoBeforeRewind: BigWorld.player().inputHandler.onControlModeChanged( 'video', prevModeName='arcade', camMatrix=self.__videoCameraMatrix) self.__wasVideoBeforeRewind = False g_replayEvents.onTimeWarpFinish()
def __cleanupAfterTimeWarp(self): BigWorld.wg_clearDecals() if self.__replayCtrl.isTimeWarpInProgress: self.__enableInGameEffects(False) self.__timeWarpCleanupCb = BigWorld.callback(0.0, self.__cleanupAfterTimeWarp) else: if self.__timeWarpCleanupCb is not None: BigWorld.cancelCallback(self.__timeWarpCleanupCb) self.__timeWarpCleanupCb = None self.__warpTime = -1.0 BigWorld.wg_enableGUIBackground(False, False) self.__enableInGameEffects(0.0 < self.__playbackSpeedModifiers[self.__playbackSpeedIdx] < 8.0) g_replayEvents.onMuteSound(not 0.0 < self.__playbackSpeedModifiers[self.__playbackSpeedIdx] < 8.0) if self.__wasVideoBeforeRewind: BigWorld.player().inputHandler.onControlModeChanged('video', prevModeName='arcade', camMatrix=self.__videoCameraMatrix) self.__wasVideoBeforeRewind = False g_replayEvents.onTimeWarpFinish() return