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!')
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
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
def _onLoaded(self): arenaDescription, arenaTypeName, icon = _getData() icon = getPathForFlash(icon, base=SCALEFORM_SWF_PATH) self.as_setMap(arenaTypeName, arenaDescription, icon)