Пример #1
0
 def removeHistoryBattlesFromCarousel(self):
     clientID = channel_num_gen.getClientID4PreQueue(QUEUE_TYPE.HISTORICAL)
     if not clientID:
         LOG_ERROR('Client ID not found',
                   'removeHistoryBattlesFromCarousel')
         return
     self._handleRemoveRequest(clientID)
Пример #2
0
 def removeFalloutFromCarousel(self):
     clientID = channel_num_gen.getClientID4PreQueue(
         QUEUE_TYPE.EVENT_BATTLES)
     if not clientID:
         LOG_ERROR('Client ID not found', 'removeFalloutFromCarousel')
         return
     self._handleRemoveRequest(clientID)
Пример #3
0
 def addFalloutToCarousel(self):
     clientID = channel_num_gen.getClientID4PreQueue(QUEUE_TYPE.EVENT_BATTLES)
     if not clientID:
         LOG_ERROR('Client ID not found', 'addFalloutToCarousel')
         return
     currCarouselItemCtx = _defCarouselItemCtx._replace(label='#fallout:channel/label', criteria={POP_UP_CRITERIA.VIEW_ALIAS: 'falloutBattleSelectorWindow'}, openHandler=self.showFalloutWindow)
     self._handleAddPreBattleRequest(clientID, currCarouselItemCtx._asdict())
Пример #4
0
 def addHistoryBattlesToCarousel(self):
     from gui.Scaleform.locale.HISTORICAL_BATTLES import HISTORICAL_BATTLES
     clientID = channel_num_gen.getClientID4PreQueue(QUEUE_TYPE.HISTORICAL)
     if not clientID:
         LOG_ERROR('Client ID not found', 'addHistoryBattlesToCarousel')
         return
     currCarouselItemCtx = _defCarouselItemCtx._replace(label=HISTORICAL_BATTLES.WINDOW_MAIN_TITLE, criteria={POP_UP_CRITERIA.VIEW_ALIAS: PREBATTLE_ALIASES.HISTORICAL_BATTLES_LIST_WINDOW_PY}, openHandler=self.showHistoryBattlesWindow)
     self._handleAddPreBattleRequest(clientID, currCarouselItemCtx._asdict())
Пример #5
0
 def addFalloutToCarousel(self):
     clientID = channel_num_gen.getClientID4PreQueue(
         QUEUE_TYPE.EVENT_BATTLES)
     if not clientID:
         LOG_ERROR('Client ID not found', 'addFalloutToCarousel')
         return
     currCarouselItemCtx = _defCarouselItemCtx._replace(
         label='#fallout:channel/label',
         criteria={
             POP_UP_CRITERIA.VIEW_ALIAS: 'falloutBattleSelectorWindow'
         },
         openHandler=self.showFalloutWindow)
     self._handleAddPreBattleRequest(clientID,
                                     currCarouselItemCtx._asdict())
Пример #6
0
 def addHistoryBattlesToCarousel(self):
     from gui.Scaleform.locale.HISTORICAL_BATTLES import HISTORICAL_BATTLES
     clientID = channel_num_gen.getClientID4PreQueue(QUEUE_TYPE.HISTORICAL)
     if not clientID:
         LOG_ERROR('Client ID not found', 'addHistoryBattlesToCarousel')
         return
     currCarouselItemCtx = _defCarouselItemCtx._replace(
         label=HISTORICAL_BATTLES.WINDOW_MAIN_TITLE,
         criteria={
             POP_UP_CRITERIA.VIEW_ALIAS:
             PREBATTLE_ALIASES.HISTORICAL_BATTLES_LIST_WINDOW_PY
         },
         openHandler=self.showHistoryBattlesWindow)
     self._handleAddPreBattleRequest(clientID,
                                     currCarouselItemCtx._asdict())
 def getClientID(self):
     return channel_num_gen.getClientID4PreQueue(constants.QUEUE_TYPE.HISTORICAL)
Пример #8
0
 def removeHistoryBattlesFromCarousel(self):
     clientID = channel_num_gen.getClientID4PreQueue(QUEUE_TYPE.HISTORICAL)
     if not clientID:
         LOG_ERROR('Client ID not found', 'removeHistoryBattlesFromCarousel')
         return
     self._handleRemoveRequest(clientID)
Пример #9
0
 def removeFalloutFromCarousel(self):
     clientID = channel_num_gen.getClientID4PreQueue(QUEUE_TYPE.EVENT_BATTLES)
     if not clientID:
         LOG_ERROR('Client ID not found', 'removeFalloutFromCarousel')
         return
     self._handleRemoveRequest(clientID)
 def getClientID(self):
     return channel_num_gen.getClientID4PreQueue(constants.QUEUE_TYPE.HISTORICAL)