def _populate(self): super(CyberSportUnitsListView, self)._populate() self._cooldown.start() self.addListener(CSVehicleSelectEvent.VEHICLE_SELECTED, self.__onVehiclesSelectedTeams) self.startUnitListening() if self.unitFunctional.getPrbType() != PREBATTLE_TYPE.NONE: self.unitFunctional.setPrbType(PREBATTLE_TYPE.UNIT) self.updateSelectedVehicles() unit_ext.initListReq(self._unitTypeFlags).start( self.__onUnitsListUpdated) g_clientUpdateManager.addCallbacks( {'inventory.1': self.__onVehiclesChanged}) self.as_setSearchResultTextS( _ms(CYBERSPORT.WINDOW_UNITLISTVIEW_FOUNDTEAMS), '', self.__getFiltersData()) headerDescription = CYBERSPORT.WINDOW_UNITLISTVIEW_DESCRIPTION headerTitle = CYBERSPORT.WINDOW_UNITLISTVIEW_TITLE self.as_setHeaderS({ 'title': headerTitle, 'description': headerDescription, 'createBtnLabel': CYBERSPORT.WINDOW_UNITLISTVIEW_CREATE_BTN, 'createBtnTooltip': None, 'createBtnEnabled': True, 'columnHeaders': self.__getColumnHeaders() })
def _populate(self): super(CyberSportUnitsListView, self)._populate() self.addListener(CSVehicleSelectEvent.VEHICLE_SELECTED, self.__onVehiclesSelectedTeams) self.updateSelectedVehicles() unit_ext.initListReq(self._selectedVehicles).start(self.__onUnitsListUpdated) g_clientUpdateManager.addCallbacks({'inventory.1': self.__onVehiclesChanged}) self.as_setSearchResultTextS(i18n.makeString(CYBERSPORT.WINDOW_UNITLISTVIEW_FOUNDTEAMS)) settings = self.unitFunctional.getRosterSettings() self._updateVehiclesLabel(int2roman(settings.getMinLevel()), int2roman(settings.getMaxLevel()))
def _populate(self): super(CyberSportUnitsListView, self)._populate() self._cooldown.start() self.startUnitListening() if self.unitFunctional.getEntityType() != PREBATTLE_TYPE.NONE: self.unitFunctional.setEntityType(PREBATTLE_TYPE.UNIT) unit_ext.initListReq(self._unitTypeFlags).start(self.__onUnitsListUpdated) self.as_setSearchResultTextS(_ms(CYBERSPORT.WINDOW_UNITLISTVIEW_FOUNDTEAMS), '', self.__getFiltersData()) headerDescription = CYBERSPORT.WINDOW_UNITLISTVIEW_DESCRIPTION headerTitle = CYBERSPORT.WINDOW_UNITLISTVIEW_TITLE self.as_setHeaderS({'title': headerTitle, 'description': headerDescription, 'createBtnLabel': CYBERSPORT.WINDOW_UNITLISTVIEW_CREATE_BTN, 'createBtnTooltip': None, 'createBtnEnabled': True, 'columnHeaders': self.__getColumnHeaders()}) return
def _populate(self): super(CyberSportUnitsListView, self)._populate() self.addListener(CSVehicleSelectEvent.VEHICLE_SELECTED, self.__onVehiclesSelectedTeams) self.startUnitListening() if self.unitFunctional.getPrbType() != PREBATTLE_TYPE.NONE: self.unitFunctional.setPrbType(PREBATTLE_TYPE.UNIT) self.updateSelectedVehicles() unit_ext.initListReq(self._unitTypeFlags).start(self.__onUnitsListUpdated) g_clientUpdateManager.addCallbacks({'inventory.1': self.__onVehiclesChanged}) self.as_setSearchResultTextS(_ms(CYBERSPORT.WINDOW_UNITLISTVIEW_FOUNDTEAMS), '', self.__getFiltersData()) headerDescription = CYBERSPORT.WINDOW_UNITLISTVIEW_DESCRIPTION headerTitle = CYBERSPORT.WINDOW_UNITLISTVIEW_TITLE self.as_setHeaderS({'title': headerTitle, 'description': headerDescription, 'createBtnLabel': CYBERSPORT.WINDOW_UNITLISTVIEW_CREATE_BTN, 'createBtnTooltip': None, 'createBtnEnabled': True, 'columnHeaders': self.__getColumnHeaders()}) return
def _populate(self): super(CyberSportUnitsListView, self)._populate() self._cooldown.start() self.startUnitListening() if self.unitFunctional.getEntityType() != PREBATTLE_TYPE.NONE: self.unitFunctional.setEntityType(PREBATTLE_TYPE.UNIT) unit_ext.initListReq(self._unitTypeFlags).start( self.__onUnitsListUpdated) self.as_setSearchResultTextS( _ms(CYBERSPORT.WINDOW_UNITLISTVIEW_FOUNDTEAMS), '', self.__getFiltersData()) headerDescription = CYBERSPORT.WINDOW_UNITLISTVIEW_DESCRIPTION headerTitle = CYBERSPORT.WINDOW_UNITLISTVIEW_TITLE self.as_setHeaderS({ 'title': headerTitle, 'description': headerDescription, 'createBtnLabel': CYBERSPORT.WINDOW_UNITLISTVIEW_CREATE_BTN, 'createBtnTooltip': None, 'createBtnEnabled': True, 'columnHeaders': self.__getColumnHeaders() }) return