コード例 #1
0
def showVehicleStats(vehTypeCompDescr):
    g_eventBus.handleEvent(events.LoadViewEvent(
        VIEW_ALIAS.LOBBY_PROFILE, ctx={'itemCD': vehTypeCompDescr}),
                           scope=EVENT_BUS_SCOPE.LOBBY)
コード例 #2
0
 def onCloseTechTree(self):
     if self._canBeClosed:
         self.__stopTopOfTheTreeSounds()
         self.fireEvent(events.LoadViewEvent(VIEW_ALIAS.LOBBY_HANGAR),
                        scope=EVENT_BUS_SCOPE.LOBBY)
コード例 #3
0
def showBattleConsumesIntro():
    g_eventBus.handleEvent(
        events.LoadViewEvent(
            FORTIFICATION_ALIASES.FORT_COMBAT_RESERVES_INTRO_ALIAS),
        EVENT_BUS_SCOPE.LOBBY)
コード例 #4
0
 def __onSettingsChanged(self, diff):
     if 'isRegularQuestEnabled' in diff and not diff[
             'isRegularQuestEnabled']:
         self.fireEvent(events.LoadViewEvent(VIEW_ALIAS.LOBBY_HANGAR),
                        scope=EVENT_BUS_SCOPE.LOBBY)
コード例 #5
0
 def openRequestWindow(self):
     self.fireEvent(
         events.LoadViewEvent(CLANS_ALIASES.CLAN_PROFILE_INVITES_WINDOW_PY),
         EVENT_BUS_SCOPE.LOBBY)
     self.destroy()
コード例 #6
0
 def goToScene(self, sceneID):
     event = self.config.getSceneEvent(sceneID)
     if event:
         g_eventBus.handleEvent(events.LoadViewEvent(
             SFViewLoadParams(event)),
                                scope=EVENT_BUS_SCOPE.LOBBY)
コード例 #7
0
 def showFAQWindow(self):
     self.fireEvent(events.LoadViewEvent(MESSENGER_VIEW_ALIAS.FAQ_WINDOW), scope=EVENT_BUS_SCOPE.LOBBY)
コード例 #8
0
def showVehicleCompare():
    g_eventBus.handleEvent(events.LoadViewEvent(VIEW_ALIAS.VEHICLE_COMPARE),
                           scope=EVENT_BUS_SCOPE.LOBBY)
コード例 #9
0
def showRankedPrimeTimeWindow():
    g_eventBus.handleEvent(
        events.LoadViewEvent(
            alias=RANKEDBATTLES_ALIASES.RANKED_BATTLE_PRIME_TIME, ctx={}),
        EVENT_BUS_SCOPE.LOBBY)
コード例 #10
0
def showBattleResultsWindow(arenaUniqueID):
    g_eventBus.handleEvent(
        events.LoadViewEvent(
            VIEW_ALIAS.BATTLE_RESULTS,
            getViewName(VIEW_ALIAS.BATTLE_RESULTS, str(arenaUniqueID)),
            {'arenaUniqueID': arenaUniqueID}), EVENT_BUS_SCOPE.LOBBY)
コード例 #11
0
def showBoostersWindow():
    g_eventBus.handleEvent(events.LoadViewEvent(VIEW_ALIAS.BOOSTERS_WINDOW),
                           EVENT_BUS_SCOPE.LOBBY)
コード例 #12
0
def showClanInvitesWindow():
    g_eventBus.handleEvent(
        events.LoadViewEvent(CLANS_ALIASES.CLAN_PROFILE_INVITES_WINDOW_PY),
        EVENT_BUS_SCOPE.LOBBY)
コード例 #13
0
def showClanSearchWindow():
    alias = CLANS_ALIASES.CLAN_SEARCH_WINDOW_PY
    g_eventBus.handleEvent(events.LoadViewEvent(alias, alias, ctx=None),
                           EVENT_BUS_SCOPE.LOBBY)
    return
コード例 #14
0
def showHangar():
    g_eventBus.handleEvent(events.LoadViewEvent(VIEW_ALIAS.LOBBY_HANGAR),
                           scope=EVENT_BUS_SCOPE.LOBBY)
コード例 #15
0
 def fortModernization(self):
     self.fireEvent(events.LoadViewEvent(
         FORTIFICATION_ALIASES.FORT_MODERNIZATION_WINDOW_ALIAS,
         ctx={'data': self.buildingID}),
                    scope=EVENT_BUS_SCOPE.LOBBY)
コード例 #16
0
def showVehicleSellDialog(vehInvID):
    g_eventBus.handleEvent(
        events.LoadViewEvent(VIEW_ALIAS.VEHICLE_SELL_DIALOG,
                             ctx={'vehInvID': int(vehInvID)}),
        EVENT_BUS_SCOPE.LOBBY)
コード例 #17
0
 def fortDestroy(self):
     self.fireEvent(events.LoadViewEvent(
         FORTIFICATION_ALIASES.FORT_DEMOUNT_BUILDING_WINDOW,
         ctx={'data': self.buildingID}),
                    scope=EVENT_BUS_SCOPE.LOBBY)
コード例 #18
0
 def showTrainingSettings(self):
     self.fireEvent(events.LoadViewEvent(
         PREBATTLE_ALIASES.TRAINING_SETTINGS_WINDOW_PY,
         ctx={'isCreateRequest': False}),
                    scope=EVENT_BUS_SCOPE.LOBBY)
コード例 #19
0
 def inviteFriendRequest(self):
     self.fireEvent(events.LoadViewEvent(PREBATTLE_ALIASES.SEND_INVITES_WINDOW_PY, ctx={'prbName': 'unit',
      'ctrlType': CTRL_ENTITY_TYPE.UNIT}), scope=EVENT_BUS_SCOPE.LOBBY)
コード例 #20
0
 def onCrewDogMoreInfoClick(self):
     self.fireEvent(events.LoadViewEvent(VIEW_ALIAS.CREW_ABOUT_DOG_WINDOW),
                    EVENT_BUS_SCOPE.LOBBY)
コード例 #21
0
def _defaultExitEvent():
    return events.LoadViewEvent(SFViewLoadParams(VIEW_ALIAS.LOBBY_HANGAR),
                                name=VIEW_ALIAS.LOBBY_HANGAR)
コード例 #22
0
 def onCloseView(self):
     returnAlias = self.__getFromCtx('returnAlias', VIEW_ALIAS.LOBBY_HANGAR)
     self.fireEvent(events.LoadViewEvent(returnAlias, ctx=self.__ctx),
                    EVENT_BUS_SCOPE.LOBBY)
コード例 #23
0
 def openReferralManagement(self):
     self.fireEvent(
         events.LoadViewEvent(VIEW_ALIAS.REFERRAL_MANAGEMENT_WINDOW),
         EVENT_BUS_SCOPE.LOBBY)
     self.destroy()
コード例 #24
0
 def atCall(self, cd):
     cd.avoid()
     g_eventBus.handleEvent(
         events.LoadViewEvent(VIEW_ALIAS.SQUAD_PROMO_WINDOW),
         EVENT_BUS_SCOPE.LOBBY)
コード例 #25
0
 def openInviteWindow(self):
     self.fireEvent(
         events.LoadViewEvent(
             CLANS_ALIASES.CLAN_PERSONAL_INVITES_WINDOW_PY),
         EVENT_BUS_SCOPE.LOBBY)
     self.destroy()
コード例 #26
0
 def fortDirection(self):
     self.fireEvent(
         events.LoadViewEvent(
             FORTIFICATION_ALIASES.FORT_CREATE_DIRECTION_WINDOW_ALIAS),
         EVENT_BUS_SCOPE.LOBBY)
コード例 #27
0
 def __onVehicleBecomeElite(self, vehTypeCompDescr):
     self.fireEvent(
         events.LoadViewEvent(
             VIEW_ALIAS.ELITE_WINDOW,
             getViewName(VIEW_ALIAS.ELITE_WINDOW, vehTypeCompDescr),
             {'vehTypeCompDescr': vehTypeCompDescr}), EVENT_BUS_SCOPE.LOBBY)
コード例 #28
0
 def fortAssignPlayers(self):
     self.fireEvent(events.LoadViewEvent(
         FORTIFICATION_ALIASES.FORT_FIXED_PLAYERS_WINDOW_ALIAS,
         ctx={'data': self.buildingID}),
                    scope=EVENT_BUS_SCOPE.LOBBY)
コード例 #29
0
def loadFortView():
    g_eventBus.handleEvent(
        events.LoadViewEvent(FORTIFICATION_ALIASES.FORTIFICATIONS_VIEW_ALIAS),
        EVENT_BUS_SCOPE.LOBBY)
コード例 #30
0
 def showPrebattleSendInvitesWindow(self):
     if self.canSendInvite():
         self.fireEvent(events.LoadViewEvent(SFViewLoadParams(PREBATTLE_ALIASES.SEND_INVITES_WINDOW_PY), ctx={'prbName': self.__prbName,
          'ctrlType': CTRL_ENTITY_TYPE.LEGACY}), scope=EVENT_BUS_SCOPE.LOBBY)