Пример #1
0
 def __initIntroUnitView(self):
     navKey = self.getNavigationKey()
     NavigationStack.exclude(navKey, CYBER_SPORT_ALIASES.UNIT_VIEW_UI)
     if NavigationStack.hasHistory(navKey):
         (flashAlias, _, itemID,) = NavigationStack.current(navKey)
         self._requestViewLoad(flashAlias, itemID)
     else:
         self._requestViewLoad(CYBER_SPORT_ALIASES.INTRO_VIEW_UI, None)
Пример #2
0
 def _goToNextView(self, closeForced = False):
     if NavigationStack.hasHistory(self.getNavigationKey()):
         self._viewToUnload = NavigationStack.current(self.getNavigationKey())
         self._viewToLoad = NavigationStack.prev(self.getNavigationKey())
         if self._viewToLoad is None:
             self._requestViewLoad(self.getIntroViewAlias(), None, closeForced=closeForced)
         else:
             self._processStacks(closeForced=closeForced)
     else:
         self._requestViewLoad(self.getIntroViewAlias(), None, closeForced=closeForced)
 def __initIntroUnitView(self):
     navKey = self.getNavigationKey()
     NavigationStack.exclude(navKey, CYBER_SPORT_ALIASES.UNIT_VIEW_UI)
     NavigationStack.exclude(navKey, CYBER_SPORT_ALIASES.STATIC_FORMATION_UNIT_VIEW_UI)
     if NavigationStack.hasHistory(navKey):
         flashAlias, _, itemID = NavigationStack.current(navKey)
         self._requestViewLoad(flashAlias, itemID)
     else:
         self._requestViewLoad(CYBER_SPORT_ALIASES.INTRO_VIEW_UI, None)
     return
Пример #4
0
 def __initIntroView(self):
     isListShow = self.__modeFlags & UNIT_MODE_FLAGS.SHOW_LIST > 0
     navKey = self.getNavigationKey()
     if isListShow:
         NavigationStack.clear(navKey)
         self._requestViewLoad(FORTIFICATION_ALIASES.FORT_BATTLE_ROOM_LIST_VIEW_UI, None)
     else:
         NavigationStack.exclude(navKey, FORTIFICATION_ALIASES.FORT_BATTLE_ROOM_VIEW_UI)
         NavigationStack.exclude(navKey, FORTIFICATION_ALIASES.FORT_CLAN_BATTLE_ROOM_VIEW_UI)
         if NavigationStack.hasHistory(navKey):
             flashAlias, _, itemID = NavigationStack.current(navKey)
             self._requestViewLoad(flashAlias, itemID)
         else:
             self._requestViewLoad(self.getIntroViewAlias(), None)
Пример #5
0
 def _goToNextView(self, closeForced=False):
     if NavigationStack.hasHistory(self.getNavigationKey()):
         self._viewToUnload = NavigationStack.current(
             self.getNavigationKey())
         self._viewToLoad = NavigationStack.prev(self.getNavigationKey())
         if self._viewToLoad is None:
             self._requestViewLoad(self.getIntroViewAlias(),
                                   None,
                                   closeForced=closeForced)
         else:
             self._processStacks(closeForced=closeForced)
     else:
         self._requestViewLoad(self.getIntroViewAlias(),
                               None,
                               closeForced=closeForced)
Пример #6
0
 def __initIntroView(self):
     isListShow = self.__modeFlags & UNIT_MODE_FLAGS.SHOW_LIST > 0
     navKey = self.getNavigationKey()
     if isListShow:
         NavigationStack.clear(navKey)
         self._requestViewLoad(
             FORTIFICATION_ALIASES.FORT_BATTLE_ROOM_LIST_VIEW_UI, None)
     else:
         NavigationStack.exclude(
             navKey, FORTIFICATION_ALIASES.FORT_BATTLE_ROOM_VIEW_UI)
         NavigationStack.exclude(
             navKey, FORTIFICATION_ALIASES.FORT_CLAN_BATTLE_ROOM_VIEW_UI)
         if NavigationStack.hasHistory(navKey):
             flashAlias, _, itemID = NavigationStack.current(navKey)
             self._requestViewLoad(flashAlias, itemID)
         else:
             self._requestViewLoad(self.getIntroViewAlias(), None)