def __updateClientState(self): if self.prbEntity is None: return else: permissions = self.prbEntity.getPermissions() if not permissions.canExitFromQueue(): self.as_showExitS(False) guiType = prb_getters.getArenaGUIType( queueType=self.__provider.getQueueType()) title = MENU.loading_battletypes(guiType) description = MENU.loading_battletypes_desc(guiType) if guiType != constants.ARENA_GUI_TYPE.UNKNOWN and guiType in constants.ARENA_GUI_TYPE_LABEL.LABELS: iconlabel = constants.ARENA_GUI_TYPE_LABEL.LABELS[guiType] else: iconlabel = 'neutral' if self.__provider.needAdditionalInfo(): additional = self.__provider.additionalInfo() else: additional = '' vehicle = g_currentVehicle.item textLabel = self.__provider.getTankInfoLabel() tankName = vehicle.shortUserName iconPath = _getVehicleIconPath(vehicle.type) self.as_setTypeInfoS({ 'iconLabel': iconlabel, 'title': title, 'description': description, 'additional': additional, 'tankLabel': text_styles.main(textLabel), 'tankIcon': iconPath, 'tankName': tankName }) return