def setIsInHangarSelected(self, value):
     storageId = self._getStorageId()
     storedData = AccountSettings.getFilter(storageId)
     storedData['isInHangarSelected'] = value
     AccountSettings.setFilter(storageId, storedData)
     if self._data is not None:
         self.as_responseDossierS(
             self._battlesType, self._getTechniqueListVehicles(self._data),
             '', self.getEmptyScreenLabel())
     return
示例#2
0
 def __init__(self, ctx=None):
     super(StoreView, self).__init__(ctx)
     tabId = ctx.get('tabId')
     component = ctx.get('component')
     if tabId is not None:
         self.__currentTab = _getTabIndex(tabId)
     else:
         self.__currentTab = AccountSettings.getFilter(STORE_TAB)
     if component is not None:
         nation, _ = AccountSettings.getFilter('shop_current')
         AccountSettings.setFilter('shop_current', (nation, component))
     return
示例#3
0
 def __init__(self, ctx = None):
     super(StoreView, self).__init__(ctx)
     tabId = ctx.get('tabId')
     component = ctx.get('component')
     if tabId is not None:
         self.__currentTab = _getTabIndex(tabId)
     else:
         self.__currentTab = AccountSettings.getFilter(STORE_TAB)
     if component is not None:
         nation, _ = AccountSettings.getFilter('shop_current')
         AccountSettings.setFilter('shop_current', (nation, component))
     return
示例#4
0
 def _initialize(self, ctx=None):
     ctx = ctx or {}
     tabId = ctx.get('tabId')
     component = ctx.get('component')
     itemCD = ctx.get('itemCD')
     self.__showBackButton = ctx.get('showBackButton', False)
     if tabId is not None:
         self.__currentTabIdx = _getTabIndex(tabId)
     elif self.__currentTabIdx is None:
         if self.__checkForActiveActions():
             self.__currentTabIdx = _getTabIndex(
                 STORE_CONSTANTS.STORE_ACTIONS)
         else:
             self.__currentTabIdx = _getTabIndex(STORE_CONSTANTS.SHOP)
     if component is not None:
         nation, _, actionsSelected = AccountSettings.getFilter(
             'shop_current')
         AccountSettings.setFilter('shop_current',
                                   (nation, component, actionsSelected))
     if all((itemCD, component, tabId)):
         AccountSettings.setFilter('scroll_to_item', itemCD)
         section = '{}_{}'.format(tabId, component)
         _, component, _ = AccountSettings.getFilter('shop_current')
         defaults = AccountSettings.getFilterDefault(section)
         AccountSettings.setFilter('shop_current', (-1, component, False))
         AccountSettings.setFilter(section, defaults)
     return
示例#5
0
 def _dispose(self):
     AccountSettings.setFilter(STORE_TAB, self.__currentTab)
     super(StoreView, self)._dispose()
示例#6
0
 def _dispose(self):
     AccountSettings.setFilter(STORE_TAB, self.__currentTab)
     super(StoreView, self)._dispose()
示例#7
0
 def setSelectedTableColumn(self, index, sortDirection):
     storedDataId = self._getStorageId()
     storedData = AccountSettings.getFilter(storedDataId)
     storedData['selectedColumn'] = index
     storedData['selectedColumnSorting'] = sortDirection
     AccountSettings.setFilter(storedDataId, storedData)