本文整理汇总了Python中gui.Scaleform.framework.entities.View.View类的典型用法代码示例。如果您正苦于以下问题:Python View类的具体用法?Python View怎么用?Python View使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了View类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _populate
def _populate(self):
View._populate(self)
self.__getInitialData()
if self._currentVehicleInvId != -1:
g_clientUpdateManager.addCallbacks({'inventory': self.onInventoryChanged})
g_clientUpdateManager.addCallbacks({'stats.credits': self.onCreditsChange,
'stats.gold': self.onGoldChange,
'cache.mayConsumeWalletResources': self.onGoldChange})
示例2: _dispose
def _dispose(self):
game_control.g_instance.igr.onIgrTypeChanged -= self.__onIgrTypeChanged
self.app.loaderManager.onViewLoadError -= self.__onViewLoadError
self.app.loaderManager.onViewLoaded -= self.__onViewLoaded
self.app.loaderManager.onViewLoadInit -= self.__onViewLoadInit
g_playerEvents.onVehicleBecomeElite -= self.__onVehicleBecomeElite
self.removeListener(events.LobbySimpleEvent.SHOW_HELPLAYOUT, self.__showHelpLayout, EVENT_BUS_SCOPE.LOBBY)
self.removeListener(events.LobbySimpleEvent.CLOSE_HELPLAYOUT, self.__closeHelpLayout, EVENT_BUS_SCOPE.LOBBY)
View._dispose(self)
示例3: _dispose
def _dispose(self):
self.app.loaderManager.onViewLoadError -= self.__onViewLoadError
self.app.loaderManager.onViewLoaded -= self.__onViewLoaded
self.app.loaderManager.onViewLoadInit -= self.__onViewLoadInit
self.app.containerManager.removeContainer(VIEW_TYPE.LOBBY_SUB)
g_playerEvents.onVehicleBecomeElite -= self.__onVehicleBecomeElite
self.removeListener(events.LobbySimpleEvent.SHOW_HELPLAYOUT, self.__showHelpLayout, EVENT_BUS_SCOPE.LOBBY)
self.removeListener(events.LobbySimpleEvent.CLOSE_HELPLAYOUT, self.__closeHelpLayout, EVENT_BUS_SCOPE.LOBBY)
View._dispose(self)
示例4: _dispose
def _dispose(self):
if self.__capsLockCallbackID is not None:
BigWorld.cancelCallback(self.__capsLockCallbackID)
self.__capsLockCallbackID = None
connectionManager.onRejected -= self._onLoginRejected
self._servers.onServersStatusChanged -= self.__updateServersList
g_playerEvents.onLoginQueueNumberReceived -= self.__loginQueueDialogShown
g_playerEvents.onKickWhileLoginReceived -= self._onKickedWhileLogin
g_playerEvents.onAccountShowGUI -= self._clearLoginView
View._dispose(self)
return
示例5: _populate
def _populate(self):
View._populate(self)
g_prbLoader.setEnabled(True)
self.addListener(events.LobbySimpleEvent.SHOW_HELPLAYOUT, self.__showHelpLayout, EVENT_BUS_SCOPE.LOBBY)
self.addListener(events.LobbySimpleEvent.CLOSE_HELPLAYOUT, self.__closeHelpLayout, EVENT_BUS_SCOPE.LOBBY)
g_playerEvents.onVehicleBecomeElite += self.__onVehicleBecomeElite
self.app.loaderManager.onViewLoadInit += self.__onViewLoadInit
self.app.loaderManager.onViewLoaded += self.__onViewLoaded
self.app.loaderManager.onViewLoadError += self.__onViewLoadError
self.__showBattleResults()
if self.app.browser is not None and constants.IS_CHINA:
self.app.browser.checkBattlesCounter()
return
示例6: _dispose
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
示例7: _populate
def _populate(self):
View._populate(self)
self.__currIgrType = gui.game_control.g_instance.igr.getRoomType()
g_prbLoader.setEnabled(True)
self.addListener(events.LobbySimpleEvent.SHOW_HELPLAYOUT, self.__showHelpLayout, EVENT_BUS_SCOPE.LOBBY)
self.addListener(events.LobbySimpleEvent.CLOSE_HELPLAYOUT, self.__closeHelpLayout, EVENT_BUS_SCOPE.LOBBY)
g_playerEvents.onVehicleBecomeElite += self.__onVehicleBecomeElite
self.app.loaderManager.onViewLoadInit += self.__onViewLoadInit
self.app.loaderManager.onViewLoaded += self.__onViewLoaded
self.app.loaderManager.onViewLoadError += self.__onViewLoadError
game_control.g_instance.igr.onIgrTypeChanged += self.__onIgrTypeChanged
self.__showBattleResults()
self.fireEvent(events.GUICommonEvent(events.GUICommonEvent.LOBBY_VIEW_LOADED))
keyCode = CommandMapping.g_instance.get('CMD_VOICECHAT_MUTE')
if not BigWorld.isKeyDown(keyCode):
VOIP.getVOIPManager().setMicMute(True)
示例8: _dispose
def _dispose(self):
self.__resetPreviewMode()
for interface in self.__interfaces.itervalues():
interface.destroy()
interface.onDataInited -= self.__ci_onDataInited
interface.onCustomizationChangeSuccess -= self.__ci_onCustomizationChangeSuccess
interface.onCustomizationChangeFailed -= self.__ci_onCustomizationChangeFailed
interface.onCustomizationDropSuccess -= self.__ci_onCustomizationDropSuccess
interface.onCustomizationDropFailed -= self.__ci_onCustomizationDropFailed
interface.onCurrentItemChange -= self.__ci_onCurrentItemChanged
self.__interfaces.clear()
self.__onceDataInited = False
g_playerEvents.onShopResync -= self.__pe_onShopResync
g_currentVehicle.onChanged -= self.__cv_onChanged
g_clientUpdateManager.removeObjectCallbacks(self)
View._dispose(self)
示例9: _dispose
def _dispose(self):
if self.__backgroundMode == _VIDEO_BG_MODE:
WWISE.WW_eventGlobalSync('loginscreen_music_stop_longfade')
else:
WWISE.WW_eventGlobalSync('loginscreen_ambient_stop')
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
示例10: _populate
def _populate(self):
View._populate(self)
self.as_enableS(True)
self._servers.onServersStatusChanged += self.__updateServersList
connectionManager.onRejected += self._onLoginRejected
g_playerEvents.onLoginQueueNumberReceived += self._onHandleQueue
g_playerEvents.onKickWhileLoginReceived += self._onKickedWhileLogin
g_playerEvents.onAccountShowGUI += self._clearLoginView
self.as_setVersionS(getFullClientVersion())
self.as_setCopyrightS(_ms(MENU.COPY), _ms(MENU.LEGAL))
self.__loadRandomBgImage()
if self.__capsLockCallbackID is None:
self.__capsLockCallbackID = BigWorld.callback(0.1, self.__checkUserInputState)
g_sessionProvider.getCtx().lastArenaUniqueID = None
self._setData()
self._showForm()
return
示例11: _populate
def _populate(self):
View._populate(self)
self.__currIgrType = gui.game_control.g_instance.igr.getRoomType()
g_prbLoader.setEnabled(True)
self.addListener(events.LobbySimpleEvent.SHOW_HELPLAYOUT, self.__showHelpLayout, EVENT_BUS_SCOPE.LOBBY)
self.addListener(events.LobbySimpleEvent.CLOSE_HELPLAYOUT, self.__closeHelpLayout, EVENT_BUS_SCOPE.LOBBY)
self.addListener(events.GameEvent.SCREEN_SHOT_MADE, self.__handleScreenShotMade, EVENT_BUS_SCOPE.GLOBAL)
g_playerEvents.onVehicleBecomeElite += self.__onVehicleBecomeElite
self.app.loaderManager.onViewLoadInit += self.__onViewLoadInit
self.app.loaderManager.onViewLoaded += self.__onViewLoaded
self.app.loaderManager.onViewLoadError += self.__onViewLoadError
game_control.g_instance.igr.onIgrTypeChanged += self.__onIgrTypeChanged
self.__showBattleResults()
battlesCount = g_itemsCache.items.getAccountDossier().getTotalStats().getBattlesCount()
g_lobbyContext.updateBattlesCount(battlesCount)
self.fireEvent(events.GUICommonEvent(events.GUICommonEvent.LOBBY_VIEW_LOADED))
self.bwProto.voipController.invalidateMicrophoneMute()
示例12: _populate
def _populate(self):
BigWorld.player().resyncDossiers()
self.fireEvent(LobbySimpleEvent(LobbySimpleEvent.HIDE_HANGAR, True))
View._populate(self)
credits, gold = g_itemsCache.items.stats.money
self.as_setCreditsS(credits)
self.as_setGoldS(gold)
g_playerEvents.onDossiersResync += self.__pe_onDossiersResync
g_clientUpdateManager.addCallbacks({'stats.gold': self.onGoldUpdate,
'stats.credits': self.onCreditsUpdate,
'cache.mayConsumeWalletResources': self.onGoldUpdate,
'account.attrs': self.onCameraUpdate,
'inventory.1.compDescr': self.onVehiclesUpdate,
'cache.vehsLock': self.__cv_onChanged})
g_itemsCache.onSyncCompleted += self.__pe_onShopResync
game_control.g_instance.igr.onIgrTypeChanged += self.__onIGRTypeChanged
g_currentVehicle.onChanged += self.__cv_onChanged
g_hangarSpace.onSpaceCreate += self.__hs_onSpaceCreate
g_eventsCache.onSyncCompleted += self.__onEventsCacheSyncCompleted
vehDescr = None
vehType = None
if g_currentVehicle.isPresent():
vehDescr = CustomizationHelper.getUpdatedDescriptor(g_currentVehicle.item.descriptor)
vehType = vehDescr.type
VehicleCustomizationModel.setVehicleDescriptor(vehDescr)
self.__steps = len(_VEHICLE_CUSTOMIZATIONS)
for customization in _VEHICLE_CUSTOMIZATIONS:
sectionName = customization['sectionName']
interface = customization['interface'](sectionName, vehDescr.type.customizationNationID, customization['type'], customization['position'])
interface.onDataInited += self.__ci_onDataInited
interface.onCustomizationChangeSuccess += self.__ci_onCustomizationChangeSuccess
interface.onCustomizationChangeFailed += self.__ci_onCustomizationChangeFailed
interface.onCustomizationDropSuccess += self.__ci_onCustomizationDropSuccess
interface.onCustomizationDropFailed += self.__ci_onCustomizationDropFailed
interface.onCurrentItemChange += self.__ci_onCurrentItemChanged
self.__interfaces[sectionName] = interface
interface.updateSlotsPosition(vehDescr)
interface.setFlashObject(self.flashObject, setScript=False)
interface.fetchCurrentItem(vehDescr)
interface.invalidateViewData(vehType)
if not self.__steps:
self.__finishInitData()
self.setupContextHints(TUTORIAL.CUSTOMIZATION)
return
示例13: _populate
def _populate(self):
View._populate(self)
self.__currIgrType = gui.game_control.g_instance.igr.getRoomType()
g_prbLoader.setEnabled(True)
self.addListener(events.LobbySimpleEvent.SHOW_HELPLAYOUT, self.__showHelpLayout, EVENT_BUS_SCOPE.LOBBY)
self.addListener(events.LobbySimpleEvent.CLOSE_HELPLAYOUT, self.__closeHelpLayout, EVENT_BUS_SCOPE.LOBBY)
self.addListener(events.GameEvent.SCREEN_SHOT_MADE, self.__handleScreenShotMade, EVENT_BUS_SCOPE.GLOBAL)
g_playerEvents.onVehicleBecomeElite += self.__onVehicleBecomeElite
self.app.loaderManager.onViewLoadInit += self.__onViewLoadInit
self.app.loaderManager.onViewLoaded += self.__onViewLoaded
self.app.loaderManager.onViewLoadError += self.__onViewLoadError
game_control.g_instance.igr.onIgrTypeChanged += self.__onIgrTypeChanged
self.__showBattleResults()
battlesCount = g_itemsCache.items.getAccountDossier().getTotalStats().getBattlesCount()
g_lobbyContext.updateBattlesCount(battlesCount)
self.fireEvent(events.GUICommonEvent(events.GUICommonEvent.LOBBY_VIEW_LOADED))
keyCode = CommandMapping.g_instance.get('CMD_VOICECHAT_MUTE')
if not BigWorld.isKeyDown(keyCode):
VOIP.getVOIPManager().setMicMute(True)
示例14: _populate
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
示例15: _populate
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))
if BigWorld.isLowProductivityPC():
self._showOnlyStaticBackground()
else:
self._showBackground()
if self.__capsLockCallbackID is None:
self.__capsLockCallbackID = BigWorld.callback(0.1, self.__checkUserInputState)
g_sessionProvider.getCtx().lastArenaUniqueID = None
self._setData()
self._showForm()
return