Ejemplo n.º 1
0
 def createToolTipContent(self, event, contentID):
     if contentID == R.views.lobby.new_year.tooltips.NyDecorationTooltip():
         return NyDecorationTooltip(event.getArgument('toyID'),
                                    isPureToy=event.getArgument('isPure'))
     if contentID == R.views.lobby.new_year.tooltips.NyMegaDecorationTooltip(
     ):
         return NyMegaDecorationTooltip(
             event.getArgument('toyID'),
             isPureToy=event.getArgument('isPure'))
     if contentID == R.views.lobby.new_year.tooltips.NyShardsTooltip():
         return NyShardsTooltip()
     return NyDecorationStateTooltip(
         event.getArgument('atmosphereBonus')
     ) if contentID == R.views.lobby.new_year.tooltips.NyDecorationStateTooltip(
     ) else super(NyBreakDecorationsView, self).createToolTipContent(
         event, contentID)
Ejemplo n.º 2
0
 def createToolTipContent(self, event, contentID):
     if contentID == R.views.lobby.new_year.tooltips.NyVehicleSlotTooltip():
         tooltipData = self.__tooltips.get(event.getArgument('tooltipId'))
         if tooltipData is None:
             return
         return NyVehicleSlotTooltip(*tooltipData.specialArgs)
     elif contentID == R.views.lobby.new_year.tooltips.NyMenuCollectionsTooltip(
     ):
         return NyMenuCollectionsTooltip()
     elif contentID == R.views.lobby.new_year.tooltips.NyShardsTooltip():
         return NyShardsTooltip()
     elif contentID == R.views.lobby.tooltips.AdditionalRewardsTooltip():
         showCount = int(event.getArgument('showedCount'))
         return AdditionalRewardsTooltip(self.__bonuses[showCount:],
                                         getNewYearBonusPacker())
     else:
         return
Ejemplo n.º 3
0
 def createToolTipContent(self, event, ctID):
     if ctID == R.views.lobby.new_year.tooltips.NyVehicleSlotTooltip():
         tooltipData = self.__tooltips.get(event.getArgument('tooltipId'))
         if tooltipData is None:
             return
         return NyVehicleSlotTooltip(*tooltipData.specialArgs)
     elif ctID == R.views.lobby.new_year.tooltips.NyShardsTooltip():
         return NyShardsTooltip()
     elif ctID == R.views.lobby.tooltips.AdditionalRewardsTooltip(
     ) and self.viewStatus == ViewStatus.LOADED:
         showCount = int(event.getArgument('showedCount'))
         bonuses = splitBonuses(self.__rewards[self.__currentLevel])
         _, secondaryBonuses = _splitHugeBonuses(bonuses)
         return AdditionalRewardsTooltip(
             sorted(secondaryBonuses, key=nyBonusGFSortOrder)[showCount:],
             getNewYearBonusPacker())
     else:
         return super(NyAtmosphereLevelUpView,
                      self).createToolTipContent(event, ctID)
Ejemplo n.º 4
0
 def createToolTipContent(self, event, contentID):
     if contentID == R.views.lobby.new_year.tooltips.NyShardsTooltip():
         return NyShardsTooltip()
     tooltipData = getBackportTooltipData(event, self.__tooltips)
     return getTooltipContent(event, tooltipData)
Ejemplo n.º 5
0
 def createToolTipContent(self, event, contentID):
     return NyShardsTooltip(
     ) if contentID == R.views.lobby.new_year.tooltips.NyShardsTooltip(
     ) else super(NyGiftSystemBaseRewarsdView, self).createToolTipContent(
         event, contentID)