Exemple #1
0
 def _dispose(self):
     if self._getVideoFiles():
         ScaleformFileLoader.disableStreaming()
     g_bootcampEvents.onBootcampSpaceLoaded -= self._onBootcampSpaceLoaded
     g_bootcampEvents.onArenaStarted -= self._onArenaStarted
     self.sessionProvider.removeArenaCtrl(self)
     super(BCIntroVideoPage, self)._dispose()
Exemple #2
0
 def _populate(self):
     super(IntroPage, self)._populate()
     if self.__movieFiles:
         ScaleformFileLoader.enableStreaming(
             [getPathForFlash(v) for v in self.__movieFiles])
         self.__showNextMovie()
     else:
         self.__sendResult(False, 'There is no movie files for broadcast!')
Exemple #3
0
 def show(self):
     files = ['/'.join((SCALEFORM_SWF_PATH_V3, _LOGIN_VIDEO_FILE))]
     ScaleformFileLoader.enableStreaming(files)
     self.__isWindowAccessible = Windowing.isWindowAccessible()
     if not self.__isWindowAccessible:
         self.__delayedVideoStart = True
     else:
         self.__startBGMode()
 def _populate(self):
     super(IntroPage, self)._populate()
     if self.__movieFiles:
         files = [ '/'.join((SCALEFORM_SWF_PATH_V3, v)) for v in self.__movieFiles ]
         ScaleformFileLoader.enableStreaming(files)
         self.__showNextMovie()
     else:
         self.__sendResult(False, 'There is no movie files for broadcast!')
     gui.g_guiResetters.add(self.onUpdateStage)
Exemple #5
0
 def _populate(self):
     videoFiles = self._getVideoFiles()
     if videoFiles:
         ScaleformFileLoader.enableStreaming(videoFiles)
         self._videoPlayerVisible = True
     g_bootcampEvents.onArenaStarted += self._onArenaStarted
     g_bootcampEvents.onBootcampSpaceLoaded += self._onBootcampSpaceLoaded
     self.sessionProvider.addArenaCtrl(self)
     super(BCIntroVideoPage, self)._populate()
Exemple #6
0
 def _startFade(self, callback, withPause=True):
     if callback is not None:
         self._hideCompleteCallback = callback
     if self.__videoFiles:
         ScaleformFileLoader.disableStreaming()
         self.__invokeFinalize = True
     g_eventBus.addListener(events.LootboxesEvent.HIDE_COMPLETE, self._onHideCompleteCallback, scope=EVENT_BUS_SCOPE.LOBBY)
     showLootboxFadeWindow(withPause)
     return
Exemple #7
0
 def _populate(self):
     super(BCVideoPage, self)._populate()
     movies = [
         '/'.join((SCALEFORM_SWF_PATH_V3, m['video-path']))
         for m in self.content['messages']
     ]
     ScaleformFileLoader.enableStreaming(movies)
     self.stopVideo()
     self.__accessible = Windowing.isWindowAccessible()
     Windowing.addWindowAccessibilitynHandler(self._onAccessibilityChanged)
Exemple #8
0
 def _finalize(self):
     self.gui.windowsManager.onViewStatusChanged -= self.__onViewStatusChanged
     if not self.__invokeFinalize and self.__videoFiles:
         ScaleformFileLoader.disableStreaming()
     if self._hideCompleteCallback is not None:
         self._hideCompleteCallback = None
     self._showHideCloseHandler.stopListen()
     self._showHideCloseHandler = None
     g_eventBus.removeListener(events.LootboxesEvent.HIDE_COMPLETE, self._onHideCompleteCallback, scope=EVENT_BUS_SCOPE.LOBBY)
     super(LootBoxHideableView, self)._finalize()
     return
Exemple #9
0
 def _dispose(self):
     ScaleformFileLoader.disableStreaming()
     self.__backgroundMode.hide()
     if self.__capsLockCallbackID is not None:
         BigWorld.cancelCallback(self.__capsLockCallbackID)
         self.__capsLockCallbackID = None
     connectionManager.onRejected -= self._onLoginRejected
     connectionManager.onKickWhileLoginReceived -= self._onKickedWhileLogin
     connectionManager.onQueued -= self._onHandleQueue
     self._servers.onServersStatusChanged -= self.__updateServersList
     g_playerEvents.onAccountShowGUI -= self._clearLoginView
     self._serversDP.fini()
     self._serversDP = None
     View._dispose(self)
     return
Exemple #10
0
 def _dispose(self):
     ScaleformFileLoader.disableStreaming()
     self.__backgroundMode.hide()
     if self.__capsLockCallbackID is not None:
         BigWorld.cancelCallback(self.__capsLockCallbackID)
         self.__capsLockCallbackID = None
     connectionManager.onRejected -= self._onLoginRejected
     connectionManager.onKickWhileLoginReceived -= self._onKickedWhileLogin
     connectionManager.onQueued -= self._onHandleQueue
     self._servers.onServersStatusChanged -= self.__updateServersList
     g_playerEvents.onAccountShowGUI -= self._clearLoginView
     self._serversDP.fini()
     self._serversDP = None
     View._dispose(self)
     return
Exemple #11
0
 def _dispose(self):
     ScaleformFileLoader.disableStreaming()
     self.__backgroundMode.hide()
     if self.__capsLockCallbackID is not None:
         BigWorld.cancelCallback(self.__capsLockCallbackID)
         self.__capsLockCallbackID = None
     self.connectionMgr.onRejected -= self._onLoginRejected
     self.connectionMgr.onKickWhileLoginReceived -= self._onKickedWhileLogin
     self.connectionMgr.onQueued -= self._onHandleQueue
     self._servers.onServersStatusChanged -= self.__updateServersList
     g_playerEvents.onAccountShowGUI -= self._clearLoginView
     g_playerEvents.onEntityCheckOutEnqueued -= self._onEntityCheckoutEnqueued
     g_playerEvents.onAccountBecomeNonPlayer -= self._onAccountBecomeNonPlayer
     if self._entityEnqueueCancelCallback:
         g_eventBus.removeListener(BootcampEvent.QUEUE_DIALOG_CANCEL, self._onEntityCheckoutCanceled, EVENT_BUS_SCOPE.LOBBY)
     self._serversDP.fini()
     self._serversDP = None
     self._entityEnqueueCancelCallback = None
     View._dispose(self)
     return
Exemple #12
0
 def _populate(self):
     View._populate(self)
     self._serversDP = ServersDataProvider()
     self._serversDP.setFlashObject(self.as_getServersDPS())
     self.as_enableS(True)
     self._servers.onServersStatusChanged += self.__updateServersList
     connectionManager.onRejected += self._onLoginRejected
     connectionManager.onKickWhileLoginReceived += self._onKickedWhileLogin
     connectionManager.onQueued += self._onHandleQueue
     g_playerEvents.onAccountShowGUI += self._clearLoginView
     self.as_setVersionS(getFullClientVersion())
     self.as_setCopyrightS(_ms(MENU.COPY), _ms(MENU.LEGAL))
     ScaleformFileLoader.enableStreaming([getPathForFlash(_LOGIN_VIDEO_FILE)])
     self.__backgroundMode.show()
     if self.__capsLockCallbackID is None:
         self.__capsLockCallbackID = BigWorld.callback(0.1, self.__checkUserInputState)
     g_sessionProvider.getCtx().lastArenaUniqueID = None
     self._setData()
     self._showForm()
     return
Exemple #13
0
 def __init__(self, settings):
     self._isMemoryRiskySystem = isMemoryRiskySystem()
     self._isCanClose = not self._isMemoryRiskySystem
     lobbyViews = R.views.lobby
     self._holdByViews = (lobbyViews.new_year.views.NyLootBoxSpecialReward(),
      lobbyViews.loot_box.views.loot_box_entry_video_view.LootBoxEntryVideoView(),
      lobbyViews.new_year.LootBoxRewardViewGf(),
      lobbyViews.new_year.LootBoxPremiumMultiOpenView(),
      lobbyViews.loot_box.views.loot_box_opening_view.LootBoxOpeningView(),
      lobbyViews.new_year.AtmosphereLevelUp())
     self.__holdIDs = set()
     self.__videoFiles = self.__getVideoFiles()
     self.__invokeFinalize = False
     if self.__videoFiles:
         ScaleformFileLoader.enableStreaming(self.__videoFiles)
     super(LootBoxHideableView, self).__init__(settings)
     self._hideCompleteCallback = None
     self._showHideCloseHandler = LootBoxShowHideCloseHandler()
     if not NewYearHangarHideManager.isInited():
         NewYearHangarHideManager.instance()
     return
Exemple #14
0
 def _populate(self):
     View._populate(self)
     self._serversDP = ServersDataProvider()
     self._serversDP.setFlashObject(self.as_getServersDPS())
     self.as_enableS(True)
     self._servers.onServersStatusChanged += self.__updateServersList
     connectionManager.onRejected += self._onLoginRejected
     connectionManager.onKickWhileLoginReceived += self._onKickedWhileLogin
     connectionManager.onQueued += self._onHandleQueue
     g_playerEvents.onAccountShowGUI += self._clearLoginView
     self.as_setVersionS(getFullClientVersion())
     self.as_setCopyrightS(_ms(MENU.COPY), _ms(MENU.LEGAL))
     ScaleformFileLoader.enableStreaming(
         [getPathForFlash(_LOGIN_VIDEO_FILE)])
     self.__backgroundMode.show()
     if self.__capsLockCallbackID is None:
         self.__capsLockCallbackID = BigWorld.callback(
             0.1, self.__checkUserInputState)
     g_sessionProvider.getCtx().lastArenaUniqueID = None
     self._setData()
     self._showForm()
     return
Exemple #15
0
 def hide(self):
     ScaleformFileLoader.disableStreaming()
     self.__saveToPrefs()
Exemple #16
0
 def _dispose(self):
     ScaleformFileLoader.disableStreaming()
     super(IntroPage, self)._dispose()
 def hide(self):
     ScaleformFileLoader.disableStreaming()
     self.__saveToPrefs()
     Windowing.removeWindowAccessibilityHandler(
         self.__onWindowAccessibilityChanged)
Exemple #18
0
 def _dispose(self):
     Windowing.removeWindowAccessibilityHandler(
         self._onAccessibilityChanged)
     ScaleformFileLoader.disableStreaming()
     super(BCVideoPage, self)._dispose()
 def _dispose(self):
     gui.g_guiResetters.discard(self.onUpdateStage)
     ScaleformFileLoader.disableStreaming()
     super(IntroPage, self)._dispose()