Пример #1
0
 def __updateCounters(self):
     awardsCounter = main_page_vos.getBubbleLabel(
         AccountSettings.getCounters(RANKED_AWARDS_COUNTER))
     infoCounter = main_page_vos.getBubbleLabel(
         AccountSettings.getCounters(RANKED_INFO_COUNTER))
     yearRatingCounter = main_page_vos.getBubbleLabel(
         AccountSettings.getCounters(RANKED_YEAR_RATING_COUNTER))
     shopCounter = main_page_vos.getBubbleLabel(
         AccountSettings.getCounters(RANKED_SHOP_COUNTER))
     self.as_setCountersS(
         main_page_vos.getCountersData(self.__rankedController,
                                       awardsCounter, infoCounter,
                                       yearRatingCounter, shopCounter))
Пример #2
0
 def _updateCounters(self):
     self.as_setCountersS([{'componentId': _RBC.RANKED_BATTLES_REWARDS_YEAR_ID,
       'count': main_page_vos.getBubbleLabel(AccountSettings.getCounters(RANKED_AWARDS_COUNTER))}])
Пример #3
0
 def _populate(self):
     super(RankedBattlesRewardsView, self)._populate()
     self.__rankedController.onUpdated += self._update
     self.setActiveTab()
     self.as_setCountersS([{'componentId': _RBC.RANKED_BATTLES_REWARDS_YEAR_ID,
       'count': main_page_vos.getBubbleLabel(AccountSettings.getCounters(RANKED_AWARDS_COUNTER))}])