Example #1
0
 def __call__(self, *args, **kwargs):
     if not self.__nyController.isEnabled():
         showHangar()
         return
     else:
         giftEventHub = self.__giftsController.getEventHub(GiftEventID.NY_HOLIDAYS)
         if giftEventHub is None or not giftEventHub.getSettings().isEnabled:
             NewYearNavigation.switchFromStyle(CustomizationObjects.FIR, viewAlias=ViewAliases.GLADE_VIEW, forceShowMainView=True)
             return
         NewYearNavigation.switchFromStyle(self.__objectName, viewAlias=ViewAliases.GIFT_SYSTEM_VIEW, forceShowMainView=True)
         return
Example #2
0
 def _backCallback():
     if not self.__nyController.isEnabled():
         event_dispatcher.showHangar()
     else:
         NewYearNavigation.switchFromStyle(**paramDict)