Beispiel #1
0
 def __onEventBtnClick(self, args):
     label = args.get('lootBoxType', None)
     shared_events.showLootBoxEntry(label)
     self.__flowLogger.logOpen(
         currentObject=NewYearNavigation.getCurrentObject())
     self.destroyWindow()
     return
Beispiel #2
0
 def __onButtonClick(self, args):
     action = args['value']
     if action == NewYearInfoViewModel.LEVELS:
         self._goToRewardsView(tabName=NyTabBarRewardsView.FOR_LEVELS,
                               popHistory=True)
     elif action == NewYearInfoViewModel.STYLES:
         self._goToRewardsView(tabName=NyTabBarRewardsView.COLLECTION_NY22,
                               popHistory=True)
     elif action == NewYearInfoViewModel.BIGBOXES:
         showLootBoxBuyWindow()
     elif action == NewYearInfoViewModel.SMALLBOXES:
         self.__slideLogger.onViewOpened()
         showLootBoxEntry(lootBoxType=NewYearLootBoxes.COMMON)
     elif action == NewYearInfoViewModel.CELEBRITY:
         self._goToCelebrityView(popHistory=True, skipIntro=True)
     elif action == NewYearInfoViewModel.GUARANTEED_REWARDS:
         showLootBoxGuaranteedRewardsInfo()
     elif action == NewYearInfoViewModel.STREAM_BOX:
         showLootBoxOpeningStream()
     elif action == NewYearInfoViewModel.GIFT:
         skipIntro = {NewYearStorageKeys.GIFT_SYSTEM_INTRO_VISITED: True}
         self.__settingsCore.serverSettings.saveInNewYearStorage(skipIntro)
         self._goToByViewAlias(ViewAliases.GIFT_SYSTEM_VIEW,
                               popHistory=True)
Beispiel #3
0
 def __showEntryAndDestroy(self):
     showLootBoxEntry(category=self.__boxItem.getCategory(),
                      lootBoxType=self.__boxItem.getType())
     self.destroyWindow()
Beispiel #4
0
 def handleNextButton(self):
     showLootBoxEntry(self._lootboxType)
Beispiel #5
0
 def __onShowLootBox(event):
     category = event.ctx.get('category')
     lootBoxType = event.ctx.get('lootBoxType')
     if lootBoxType:
         showLootBoxEntry(lootBoxType=lootBoxType, category=category)
Beispiel #6
0
 def _onWidgetClick(self, _=None):
     showLootBoxEntry()
Beispiel #7
0
 def openLootBoxEntryView(self, cmd):
     event_dispatcher.showHangar()
     event_dispatcher.hideWebBrowserOverlay()
     event_dispatcher.showLootBoxEntry(NewYearLootBoxes.PREMIUM, cmd.category)