本文整理汇总了Python中gui.Scaleform.framework.entities.View.View._populate方法的典型用法代码示例。如果您正苦于以下问题:Python View._populate方法的具体用法?Python View._populate怎么用?Python View._populate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类gui.Scaleform.framework.entities.View.View
的用法示例。
在下文中一共展示了View._populate方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _populate
# 需要导入模块: from gui.Scaleform.framework.entities.View import View [as 别名]
# 或者: from gui.Scaleform.framework.entities.View.View import _populate [as 别名]
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: _populate
# 需要导入模块: from gui.Scaleform.framework.entities.View import View [as 别名]
# 或者: from gui.Scaleform.framework.entities.View.View import _populate [as 别名]
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
示例3: _populate
# 需要导入模块: from gui.Scaleform.framework.entities.View import View [as 别名]
# 或者: from gui.Scaleform.framework.entities.View.View import _populate [as 别名]
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)
示例4: _populate
# 需要导入模块: from gui.Scaleform.framework.entities.View import View [as 别名]
# 或者: from gui.Scaleform.framework.entities.View.View import _populate [as 别名]
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
示例5: _populate
# 需要导入模块: from gui.Scaleform.framework.entities.View import View [as 别名]
# 或者: from gui.Scaleform.framework.entities.View.View import _populate [as 别名]
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()
示例6: _populate
# 需要导入模块: from gui.Scaleform.framework.entities.View import View [as 别名]
# 或者: from gui.Scaleform.framework.entities.View.View import _populate [as 别名]
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
示例7: _populate
# 需要导入模块: from gui.Scaleform.framework.entities.View import View [as 别名]
# 或者: from gui.Scaleform.framework.entities.View.View import _populate [as 别名]
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)
示例8: _populate
# 需要导入模块: from gui.Scaleform.framework.entities.View import View [as 别名]
# 或者: from gui.Scaleform.framework.entities.View.View import _populate [as 别名]
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
示例9: _populate
# 需要导入模块: from gui.Scaleform.framework.entities.View import View [as 别名]
# 或者: from gui.Scaleform.framework.entities.View.View import _populate [as 别名]
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
示例10: _populate
# 需要导入模块: from gui.Scaleform.framework.entities.View import View [as 别名]
# 或者: from gui.Scaleform.framework.entities.View.View import _populate [as 别名]
def _populate(self):
View._populate(self)
credits, gold = g_itemsCache.items.stats.money
self.as_setCreditsS(credits)
self.as_setGoldS(gold)
g_clientUpdateManager.addCallbacks({'stats.gold': self.onGoldUpdate,
'stats.credits': self.onCreditsUpdate,
'cache.mayConsumeWalletResources': self.onGoldUpdate,
'account.attrs': self.onCameraUpdate,
'inventory.1.compDescr': self.onVehiclesUpdate})
g_playerEvents.onShopResync += self.__pe_onShopResync
g_currentVehicle.onChanged += self.__cv_onChanged
vehDescr = None
vehType = None
if g_currentVehicle.isPresent():
vehDescr = 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['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.setFlashObject(self.flashObject, setScript=False)
interface.fetchCurrentItem(vehDescr)
interface.invalidateViewData(vehType)
if not self.__steps:
self.__finishInitData()
return