本文整理汇总了Python中gui.Scaleform.daapi.LobbySubView._populate方法的典型用法代码示例。如果您正苦于以下问题:Python LobbySubView._populate方法的具体用法?Python LobbySubView._populate怎么用?Python LobbySubView._populate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类gui.Scaleform.daapi.LobbySubView
的用法示例。
在下文中一共展示了LobbySubView._populate方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _populate
# 需要导入模块: from gui.Scaleform.daapi import LobbySubView [as 别名]
# 或者: from gui.Scaleform.daapi.LobbySubView import _populate [as 别名]
def _populate(self):
LobbySubView._populate(self)
g_playerEvents.onVehicleBecomeElite += self.__onVehicleBecomeElite
g_playerEvents.onBattleResultsReceived += self.onFittingUpdate
g_currentVehicle.onChanged += self.__onCurrentVehicleChanged
game_control.g_instance.igr.onIgrTypeChanged += self.__onIgrTypeChanged
game_control.g_instance.serverStats.onStatsReceived += self.__onStatsReceived
game_control.g_instance.fallout.onSettingsChanged += self.__switchCarousels
g_itemsCache.onSyncCompleted += self.onCacheResync
g_hangarSpace.onObjectSelected += self.__on3DObjectSelected
g_hangarSpace.onObjectUnselected += self.__on3DObjectUnSelected
g_hangarSpace.onObjectClicked += self.__on3DObjectClicked
g_prbCtrlEvents.onVehicleClientStateChanged += self.__onVehicleClientStateChanged
g_clientUpdateManager.addCallbacks({'stats.credits': self.onMoneyUpdate,
'stats.gold': self.onMoneyUpdate,
'stats.vehicleSellsLeft': self.onFittingUpdate,
'stats.slots': self.onFittingUpdate,
'goodies': self.onFittingUpdate})
self.startGlobalListening()
self.__onIgrTypeChanged()
if IS_SHOW_SERVER_STATS:
self._updateCurrentServerInfo()
self.__updateAll()
self.addListener(LobbySimpleEvent.HIDE_HANGAR, self._onCustomizationShow)
self.addListener(LobbySimpleEvent.NOTIFY_CURSOR_OVER_3DSCENE, self.__onNotifyCursorOver3dScene)
self.addListener(LobbySimpleEvent.WAITING_SHOWN, self.__onWaitingShown, EVENT_BUS_SCOPE.LOBBY)
示例2: _populate
# 需要导入模块: from gui.Scaleform.daapi import LobbySubView [as 别名]
# 或者: from gui.Scaleform.daapi.LobbySubView import _populate [as 别名]
def _populate(self):
LobbySubView._populate(self)
g_playerEvents.onVehicleBecomeElite += self.__onVehicleBecomeElite
g_playerEvents.onBattleResultsReceived += self.onFittingUpdate
g_currentVehicle.onChanged += self.__onCurrentVehicleChanged
game_control.g_instance.igr.onIgrTypeChanged += self.__onIgrTypeChanged
self.startGlobalListening()
game_control.g_instance.aogas.enableNotifyAccount()
g_clientUpdateManager.addCallbacks(
{
"inventory.1": self.onVehiclesUpdate,
"stats.multipliedXPVehs_r": self.onVehiclesUpdate,
"stats.slots": self.onVehiclesUpdate,
"stats.vehTypeXP": self.onVehiclesUpdate,
"stats.unlocks": self.onVehiclesUpdate,
"stats.eliteVehicles": self.onVehiclesUpdate,
"stats.credits": self.onFittingUpdate,
"stats.gold": self.onFittingUpdate,
"stats.vehicleSellsLeft": self.onFittingUpdate,
"stats.vehTypeLocks": self.onVehiclesUpdate,
"cache.vehsLock": self.onVehiclesUpdate,
}
)
self.__onIgrTypeChanged()
self.__updateAll()
示例3: _populate
# 需要导入模块: from gui.Scaleform.daapi import LobbySubView [as 别名]
# 或者: from gui.Scaleform.daapi.LobbySubView import _populate [as 别名]
def _populate(self):
LobbySubView._populate(self)
g_playerEvents.onVehicleBecomeElite += self.__onVehicleBecomeElite
g_playerEvents.onBattleResultsReceived += self.onFittingUpdate
g_currentVehicle.onChanged += self.__onCurrentVehicleChanged
game_control.g_instance.igr.onIgrTypeChanged += self.__onIgrTypeChanged
game_control.g_instance.serverStats.onStatsReceived += self.__onStatsReceived
g_prbCtrlEvents.onPreQueueFunctionalChanged += self.onPreQueueFunctionalChanged
self.startGlobalListening()
game_control.g_instance.aogas.enableNotifyAccount()
g_itemsCache.onSyncCompleted += self.onCacheResync
g_eventsCache.onSyncCompleted += self.onEventsCacheResync
g_clientUpdateManager.addCallbacks({'stats.credits': self.onMoneyUpdate,
'stats.gold': self.onMoneyUpdate,
'stats.vehicleSellsLeft': self.onFittingUpdate,
'stats.slots': self.onFittingUpdate})
self.__onIgrTypeChanged()
if IS_SHOW_SERVER_STATS:
self._updateCurrentServerInfo()
self.__updateAll()
示例4: _populate
# 需要导入模块: from gui.Scaleform.daapi import LobbySubView [as 别名]
# 或者: from gui.Scaleform.daapi.LobbySubView import _populate [as 别名]
def _populate(self):
LobbySubView._populate(self)