def _packGui(self, condition): return formatters.packMissionIconCondition( self.getTitle(condition), MISSIONS_ALIASES.NONE, self.getDescription(condition), self._getIconKey(condition), sortKey=self._getSortKey(condition))
def _packGui(self, condition): return packMissionIconCondition(self.getTitle(condition), MISSIONS_ALIASES.NONE, self.getDescription(condition), self._getIconKey(condition), sortKey=self._getSortKey(condition), progressID=condition.progressID)
def _packNoGuiCondition(event): titleArgs = (i18n.makeString(QUESTS.DETAILS_CONDITIONS_TARGET_TITLE), ) descrArgs = (event.getDescription(), ) return formatters.packMissionIconCondition( FormattableField(FORMATTER_IDS.SIMPLE_TITLE, titleArgs), MISSIONS_ALIASES.NONE, FormattableField(FORMATTER_IDS.DESCRIPTION, descrArgs), CONDITION_ICON.FOLDER)
def _packPlayBattleCondition(): titleArgs = (i18n.makeString(QUESTS.DETAILS_CONDITIONS_PLAYBATTLE_TITLE), ) descrArgs = (i18n.makeString( QUESTS.MISSIONDETAILS_CONDITIONS_PLAYBATTLE), ) return formatters.packMissionIconCondition( FormattableField(FORMATTER_IDS.SIMPLE_TITLE, titleArgs), MISSIONS_ALIASES.NONE, FormattableField(FORMATTER_IDS.DESCRIPTION, descrArgs), CONDITION_ICON.BATTLES)
def getPlayBattleCondition(packer=PreFormattedConditionModelPacker): titleArgs = (i18n.makeString( QUESTS.DETAILS_CONDITIONS_PLAYBATTLE_TITLE), ) descrArgs = (i18n.makeString( QUESTS.MISSIONDETAILS_CONDITIONS_PLAYBATTLE), ) playBattleCondition = formatters.packMissionIconCondition( FormattableField(FORMATTER_IDS.SIMPLE_TITLE, titleArgs), MISSIONS_ALIASES.NONE, FormattableField(FORMATTER_IDS.DESCRIPTION, descrArgs), CONDITION_ICON.BATTLES) return packer.pack(playBattleCondition, CONDITION_DEFAULT_NAME)
def _packGui(self, title, condition, progressType, current, total, progressData=None): description = self._getDescription(condition) iconKey = self._getIconKey(condition) return formatters.packMissionIconCondition(title, progressType, description, iconKey, current=current, total=total, progressData=progressData)
def _packGui(self, title, progressType, label, current=None, total=None, conditionData=None, progressData=None, condition=None): return formatters.packMissionIconCondition(title, progressType, label, self._getIconKey(condition), current=current, total=total, conditionData=conditionData, progressData=progressData)
def _packGui(self, title, progressType, label, current=None, total=None, conditionData=None, progressData=None, condition=None): return events_fmts.packMissionIconCondition( title, progressType, label, self._getIconKey(condition), current=current, total=total, conditionData=conditionData, progressData=progressData, sortKey=self._getSortKey(condition))
def _packGui(self, condition): achievementsList = _packAchievementsList(condition.getValue()) return events_fmts.packMissionIconCondition( self._getTitle(condition), MISSIONS_ALIASES.NONE, self._getDescription(condition), self._getIconKey(condition), conditionData={ 'data': { 'rendererLinkage': MISSIONS_ALIASES.ACHIEVEMENT_RENDERER, 'list': achievementsList, 'icon': RES_ICONS.get90ConditionIcon(self._getIconKey()), 'description': i18n.makeString(QUESTS.DETAILS_CONDITIONS_ACHIEVEMENTS) } }, sortKey=self._getSortKey(condition), progressID=condition.progressID)