def setRecord(self, result, reusable): blocks = [] for bases, enemies in reusable.getPersonalDetailsIterator(result): components = [] for info in bases: if info.capturePoints > 0 or info.droppedCapturePoints > 0: components.append( style.GroupMiddleLabelBlock( BATTLE_RESULTS.COMMON_BATTLEEFFICIENCY_BASES)) component = EnemyTeamBaseDetailBlock() component.setRecord(info, reusable) components.append(component) component = AllyTeamBaseDetailBlock() component.setRecord(info, reusable) components.append(component) block = base.StatsBlock(base.ListMeta()) if enemies: block.addComponent( block.getNextComponentIndex(), style.GroupMiddleLabelBlock( BATTLE_RESULTS.COMMON_BATTLEEFFICIENCY_TECHNIQUE)) for info in enemies: component = EnemyDetailsBlock() component.setRecord(info, reusable) block.addComponent(block.getNextComponentIndex(), component) for component in components: block.addComponent(block.getNextComponentIndex(), component) blocks.append(block) for block in blocks[-1:] + blocks[:-1]: self.addComponent(self.getNextComponentIndex(), block)
def setRecord(self, result, reusable): igrType = reusable.getPlayerInfo().igrType personal = reusable.personal penaltyDetails = personal.avatar.getPenaltyDetails() isPremuim = reusable.isPostBattlePremium canResourceBeFaded = reusable.canResourceBeFaded for records in operator.methodcaller(self.__iteratorName)(personal): block = self.__blockClass(base.ListMeta(registered=True)) block.isPremium = isPremuim block.canResourceBeFaded = canResourceBeFaded block.igrType = igrType block.penaltyDetails = penaltyDetails block.setRecord(records, reusable) self.addNextComponent(block)
from gui.battle_results.components import common from gui.battle_results.components import details from gui.battle_results.components import personal from gui.battle_results.components import progress from gui.battle_results.components import shared from gui.battle_results.components import style from gui.battle_results.components import vehicles from gui.battle_results.settings import BATTLE_RESULTS_RECORD as _RECORD from gui.impl import backport from gui.impl.gen.resources import R from helpers import i18n _REGULAR_TABS_VO_META = base.ListMeta([{'label': i18n.makeString(MENU.FINALSTATISTIC_TABS_COMMONSTATS), 'linkage': 'CommonStats', 'viewId': 'CommonStats', 'showWndBg': False}, {'label': i18n.makeString(MENU.FINALSTATISTIC_TABS_TEAMSTATS), 'linkage': 'TeamStatsUI', 'viewId': 'TeamStatsUI', 'showWndBg': False}, {'label': i18n.makeString(MENU.FINALSTATISTIC_TABS_DETAILSSTATS), 'linkage': 'DetailsStatsViewUI', 'viewId': 'DetailsStatsViewUI', 'showWndBg': True}]) _MULTI_TEAM_TABS_VO_META = base.ListMeta([{'label': MENU.FINALSTATISTIC_TABS_COMMONSTATS, 'linkage': 'CommonStats', 'viewId': 'CommonStats', 'showWndBg': False}, {'label': MENU.FINALSTATISTIC_TABS_TEAMSTATS, 'linkage': 'MultiteamStatsUI', 'viewId': 'MultiteamStatsUI', 'showWndBg': False}, {'label': MENU.FINALSTATISTIC_TABS_DETAILSSTATS, 'linkage': 'DetailsStatsViewUI', 'viewId': 'DetailsStatsViewUI', 'showWndBg': True}]) REGULAR_TABS_BLOCK = base.StatsBlock(_REGULAR_TABS_VO_META, 'tabInfo')
def setRecord(self, result, reusable): personal = reusable.personal block = CrystalDetailsBlock(base.ListMeta(registered=True)) block.setRecord(personal.getCrystalDetails(), reusable) self.addNextComponent(block)
}, 'credits': { 'value': 0, 'str': '0' }, 'xp': { 'value': 0, 'str': '0' } }) _BOOTCAMP_PLAYERVEHICLE_VO_META = base.DictMeta({'name': '', 'typeIcon': ''}) _BOOTCAMP_STATVALUE_VO_META = base.DictMeta({'value': 0, 'str': '0'}) BOOTCAMP_RESULTS_BLOCK = base.StatsBlock(_BOOTCAMP_VO_META, '') BOOTCAMP_RESULTS_BLOCK.addComponent(0, bootcamp.BackgroundItem('background')) BOOTCAMP_RESULTS_BLOCK.addComponent( 1, bootcamp.UnlocksAndMedalsBlock(base.ListMeta(), 'unlocksAndMedals')) BOOTCAMP_RESULTS_BLOCK.addComponent(2, bootcamp.HasUnlocksFlag('hasUnlocks')) BOOTCAMP_RESULTS_BLOCK.addComponent( 3, bootcamp.StatsBlock(base.ListMeta(), 'stats')) BOOTCAMP_RESULTS_BLOCK.addComponent( 4, bootcamp.ResultTypeStrItem('resultTypeStr')) BOOTCAMP_RESULTS_BLOCK.addComponent( 5, bootcamp.FinishReasonItem('finishReasonStr')) BOOTCAMP_RESULTS_BLOCK.addComponent(6, bootcamp.ShowRewardsFlag('showRewards')) BOOTCAMP_RESULTS_BLOCK.addComponent( 7, bootcamp.PlayerVehicleBlock(_BOOTCAMP_PLAYERVEHICLE_VO_META, 'playerVehicle')) BOOTCAMP_RESULTS_BLOCK.addComponent( 8, bootcamp.CreditsBlock(_BOOTCAMP_STATVALUE_VO_META, 'credits')) BOOTCAMP_RESULTS_BLOCK.addComponent(
from gui.battle_results.components import base, battle_royale from gui.battle_results.settings import BATTLE_RESULTS_RECORD as _RECORD from gui.impl.gen import R from gui.Scaleform.genConsts.BATTLEROYALE_ALIASES import BATTLEROYALE_ALIASES BR_TOTAL_VO_META = base.DictMeta({ 'tabInfo': [], 'personal': {}, 'common': {}, 'leaderboard': [] }) _BR_TABS_VO_META = base.ListMeta([{ 'id': BATTLEROYALE_ALIASES.BATTLE_ROYALE_SUMMARY_RESULTS_CMP, 'label': '', 'selected': True, 'enabled': True }, { 'id': BATTLEROYALE_ALIASES.BATTLE_ROYALE_SCORE_RESULTS_CMP, 'label': '', 'selected': False, 'enabled': True }]) BR_TABS_BLOCK = base.StatsBlock(_BR_TABS_VO_META, 'tabInfo') _COMMON_VO_META = base.DictMeta({ 'arenaStr': '', 'userName': '', 'clanAbbrev': '', 'playerVehicles': [], 'playerPlace': 0, 'isSquadMode': False, 'vehicleStatus': {} })
from gui.shared.formatters import text_styles RANKED_COMMON_STATS_BLOCK = regular.REGULAR_COMMON_STATS_BLOCK.clone() _RANK_COMMON_VO_META = base.PropertyMeta((('state', '', 'state'), ('linkage', '', 'linkage'), ('title', '', 'title'), ('description', '', 'description'), ('topIcon', '', 'topIcon'), ('icon', '', 'rankIcon'), ('plateIcon', '', 'plateIcon'), ('shieldIcon', '', 'shieldIcon'), ('shieldCount', '', 'shieldCount'))) _RANK_COMMON_VO_META.bind(common.RankChangesBlock) RANKED_COMMON_STATS_BLOCK.addNextComponent(common.RankChangesBlock(_RANK_COMMON_VO_META, 'rank', _RECORD.VEHICLES)) regular.TEAM_ITEM_VO_META.bind(vehicles.RankedBattlesVehicleStatsBlock) RANKED_TEAMS_STATS_BLOCK = vehicles.TwoTeamsStatsBlock(regular.TEAMS_VO_META.clone(), '', _RECORD.VEHICLES) RANKED_TEAMS_STATS_BLOCK.addNextComponent(vehicles.RankedBattlesTeamStatsBlock(meta=base.ListMeta(), field='team1')) RANKED_TEAMS_STATS_BLOCK.addNextComponent(vehicles.RankedBattlesTeamStatsBlock(meta=base.ListMeta(), field='team2')) RANKED_RESULTS_BLOCK = base.DictMeta({'title': text_styles.promoTitle(RANKED_BATTLES.BATTLERESULT_HEADERTEXT), 'readyBtn': RANKED_BATTLES.BATTLERESULT_YES, 'readyBtnVisible': True, 'mainBackground': RES_ICONS.MAPS_ICONS_RANKEDBATTLES_BG_RANK_BLUR, 'leftData': {}, 'rightData': {}, 'animationEnabledLabel': text_styles.main(RANKED_BATTLES.RANKEDBATTLESBATTLERESULTS_ANIMATIONCHECKBOXLABEL), 'animationEnabled': True, 'statusText': ''}) RANKED_RESULTS_STATUS_BLOCK = common.RankedResultsStatusBlock('statusText') RANKED_ENABLE_ANIMATION_BLOCK = common.RankedResultsEnableAnimation('animationEnabled') _RANKED_RESULTS_TEAMS_VO_META = base.DictMeta({'leftData': {}, 'rightData': {}}) _RANKED_RESULTS_TEAM_DATA_VO_META = base.PropertyMeta((('title', '', 'title'), ('titleAlpha', 1.0, 'titleAlpha'), ('tops', [], 'teamList')))
# 2017.08.29 21:44:47 Støední Evropa (letní èas) # Embedded file name: scripts/client/gui/battle_results/templates/fallout.py from gui.battle_results.components import base from gui.battle_results.components import common from gui.battle_results.components import personal from gui.battle_results.components import shared from gui.battle_results.templates import regular from gui.battle_results.settings import BATTLE_RESULTS_RECORD as _RECORD regular.FINISH_RESULT_VO_META.bind(common.FalloutFinishResultBlock) FALLOUT_COMMON_STATS_BLOCK = regular.REGULAR_COMMON_STATS_BLOCK.clone( 0, 3, 7, 9, 10) FALLOUT_COMMON_STATS_BLOCK.addComponent(0, shared.FalloutSortingBlock()) FALLOUT_COMMON_STATS_BLOCK.addComponent( 3, common.FalloutArenaFullNameItem('arenaStr')) FALLOUT_COMMON_STATS_BLOCK.addComponent(7, common.FalloutFinishResultBlock()) FALLOUT_COMMON_STATS_BLOCK.addComponent( 9, personal.PersonalVehicleNamesBlock(base.ListMeta(), 'playerVehicleNames')) FALLOUT_COMMON_STATS_BLOCK.addComponent( 10, personal.FalloutVehiclesBlock(base.ListMeta(), 'playerVehicles', _RECORD.PERSONAL)) # okay decompyling c:\Users\PC\wotmods\files\originals\res\packages\scripts\scripts\client\gui\battle_results\templates\fallout.pyc # decompiled 1 files: 1 okay, 0 failed, 0 verify failed # 2017.08.29 21:44:47 Støední Evropa (letní èas)
'wasDone': False, 'scenarioProgress': [], 'rewards': [], 'accountProgress': {}}) _MAPS_TRAINING_RESULT_VO_META = base.DictMeta({'str': '', 'value': '', 'win': False}) _MAPS_TRAINING_BATTLE_GOAL_VO_META = base.DictMeta({'heavyTank': [0, 0], 'mediumTank': [0, 0], 'lightTank': [0, 0], 'SPG': [0, 0], 'AT-SPG': [0, 0]}) _MAPS_TRAINING_VEHICLE_VO_META = base.DictMeta({'type': '', 'name': ''}) _MAPS_TRAINING_ACC_PROGRESS_VO_META = base.DictMeta({'hasImproved': False}) _components = (maps_training.BattleResultBlock(_MAPS_TRAINING_RESULT_VO_META, 'result'), maps_training.BattleGoalsBlock(_MAPS_TRAINING_BATTLE_GOAL_VO_META, 'goal'), maps_training.BattleDurationItem('duration'), maps_training.StatsBlock(base.ListMeta(), 'stats'), maps_training.GeometryIdItem('geometryId'), maps_training.TeamItem('team'), maps_training.VehicleBlock(_MAPS_TRAINING_VEHICLE_VO_META, 'vehicle'), maps_training.DoneValueItem('doneValue'), maps_training.WasDoneItem('wasDone'), maps_training.ScenarioProgressBlock(base.ListMeta(), 'scenarioProgress'), maps_training.RewardsBlock(base.ListMeta(), 'rewards'), maps_training.AccountProgressBlock(_MAPS_TRAINING_ACC_PROGRESS_VO_META, 'accountProgress')) MAPS_TRAINING_RESULTS_BLOCK = base.StatsBlock(_MAPS_TRAINING_VO_META, '') for i, component in enumerate(_components): MAPS_TRAINING_RESULTS_BLOCK.addComponent(i, component)
'damageBlockedByArmor'), ('teamHitsDamage', style.RedSlashedValuesBlock('teamHitsDamage'), 'teamHitsDamage'), ('spotted', 0, 'spotted'), ('damagedKilled', style.SlashedValuesBlock('damagedKilled'), 'damagedKilled'), ('damageAssisted', 0, 'damageAssisted'), ('stunDuration', 0.0, 'stunDuration'), ('damageAssistedStun', 0, 'damageAssistedStun'), ('stunNum', 0, 'stunNum'), ('capturePointsVal', style.SlashedValuesBlock('capturePointsVal'), 'capturePoints'), ('mileage', style.MetersToKillometersItem('mileage'), 'mileage'))) STRONGHOLD_VEHICLE_STATS_BLOCK_VO_META.bind( vehicles.StrongholdVehicleStatValuesBlock) STRONGHOLD_TEAM_ITEM_VO_META = regular.TEAM_ITEM_VO_META.replace( ('statValues', vehicles.AllStrongholdVehicleStatValuesBlock(base.ListMeta(), 'statValues'), 'statValues')) STRONGHOLD_TEAM_ITEM_VO_META.bind(vehicles.StrongholdVehicleStatsBlock) STRONGHOLD_TEAMS_STATS_BLOCK = vehicles.TwoTeamsStatsBlock( regular.TEAMS_VO_META.clone(), '', _RECORD.VEHICLES) STRONGHOLD_TEAMS_STATS_BLOCK.addComponent( 0, vehicles.StrongholdTeamStatsBlock(base.ListMeta(), field='team1')) STRONGHOLD_TEAMS_STATS_BLOCK.addComponent( 1, vehicles.StrongholdTeamStatsBlock(base.ListMeta(), field='team2')) STRONGHOLD_PERSONAL_STATS_BLOCK = regular.REGULAR_PERSONAL_STATS_BLOCK.clone(8) STRONGHOLD_PERSONAL_STATS_BLOCK.addComponent( 8, vehicles.PersonalVehiclesStrongholdStatsBlock(base.ListMeta(), 'statValues', _RECORD.PERSONAL))
from gui.shared.formatters import text_styles RANKED_COMMON_STATS_BLOCK = regular.REGULAR_COMMON_STATS_BLOCK.clone() _RANK_COMMON_VO_META = base.PropertyMeta( (('state', '', 'state'), ('linkage', '', 'linkage'), ('title', '', 'title'), ('description', '', 'description'), ('topIcon', '', 'topIcon'), ('icon', '', 'rankIcon'), ('plateIcon', '', 'plateIcon'), ('shieldIcon', '', 'shieldIcon'), ('shieldCount', '', 'shieldCount'))) _RANK_COMMON_VO_META.bind(common.RankChangesBlock) RANKED_COMMON_STATS_BLOCK.addNextComponent( common.RankChangesBlock(_RANK_COMMON_VO_META, 'rank', _RECORD.VEHICLES)) regular.TEAM_ITEM_VO_META.bind(vehicles.RankedBattlesVehicleStatsBlock) RANKED_TEAMS_STATS_BLOCK = vehicles.TwoTeamsStatsBlock( regular.TEAMS_VO_META.clone(), '', _RECORD.VEHICLES) RANKED_TEAMS_STATS_BLOCK.addNextComponent( vehicles.RankedBattlesTeamStatsBlock(meta=base.ListMeta(), field='team1')) RANKED_TEAMS_STATS_BLOCK.addNextComponent( vehicles.RankedBattlesTeamStatsBlock(meta=base.ListMeta(), field='team2')) RANKED_RESULTS_BLOCK = base.DictMeta({ 'title': text_styles.promoTitle(RANKED_BATTLES.BATTLERESULT_HEADERTEXT), 'readyBtn': RANKED_BATTLES.BATTLERESULT_YES, 'readyBtnVisible': True, 'mainBackground': RES_ICONS.MAPS_ICONS_RANKEDBATTLES_BG_RANK_BLUR, 'leftData': {}, 'rightData': {}, 'animationEnabledLabel': text_styles.main(
style.RedSlashedValuesBlock('teamHitsDamage'), 'teamHitsDamage'), ('spotted', 0, 'spotted'), ('damagedKilled', style.SlashedValuesBlock('damagedKilled'), 'damagedKilled'), ('damageAssisted', 0, 'damageAssisted'), ('stunDuration', 0.0, 'stunDuration'), ('damageAssistedStun', 0, 'damageAssistedStun'), ('stunNum', 0, 'stunNum'), ('capturePointsVal', style.SlashedValuesBlock('capturePointsVal'), 'capturePoints'), ('mileage', style.MetersToKillometersItem('mileage'), 'mileage'))) RANKED_VEHICLE_STATS_BLOCK_VO_META.bind(vehicles.RankedVehicleStatValuesBlock) RANKED_COMMON_STATS_BLOCK.addNextComponent( ranked.RankChangesBlock(_RANK_COMMON_VO_META, 'rank', _RECORD.VEHICLES)) RANKED_TEAM_ITEM_VO_META = regular.TEAM_ITEM_VO_META.replace( ('statValues', vehicles.AllRankedVehicleStatValuesBlock(base.ListMeta(), 'statValues'), 'statValues')) RANKED_TEAM_ITEM_VO_META.bind(vehicles.RankedBattlesVehicleStatsBlock) RANKED_TEAMS_STATS_BLOCK = vehicles.TwoTeamsStatsBlock( regular.TEAMS_VO_META.clone(), '', _RECORD.VEHICLES) RANKED_TEAMS_STATS_BLOCK.addNextComponent( vehicles.RankedBattlesTeamStatsBlock(meta=base.ListMeta(), field='team1')) RANKED_TEAMS_STATS_BLOCK.addNextComponent( vehicles.RankedBattlesTeamStatsBlock(meta=base.ListMeta(), field='team2')) RANKED_PERSONAL_STATS_BLOCK = regular.REGULAR_PERSONAL_STATS_BLOCK.clone(8) RANKED_PERSONAL_STATS_BLOCK.addComponent( 8, vehicles.PersonalVehiclesRankedStatsBlock(base.ListMeta(), 'statValues', _RECORD.PERSONAL)) RANKED_RESULTS_BLOCK = base.DictMeta({ 'title':
from gui.battle_results.settings import BATTLE_RESULTS_RECORD as _RECORD regular.FINISH_RESULT_VO_META.bind(common.EpicBattleBattleFinishResultBlock) _EPIC_TABS_VO_META = base.ListMeta([{ 'label': i18n.makeString(MENU.FINALSTATISTIC_TABS_EPICSTATS), 'linkage': 'EpicStatsUI', 'viewId': 'EpicStatsUI', 'showWndBg': False }, { 'label': i18n.makeString(MENU.FINALSTATISTIC_TABS_TEAMSTATS), 'linkage': 'TeamStatsUI', 'viewId': 'TeamStatsUI', 'showWndBg': False }, { 'label': i18n.makeString(MENU.FINALSTATISTIC_TABS_DETAILSSTATS), 'linkage': 'DetailsStatsViewUI', 'viewId': 'DetailsStatsViewUI', 'showWndBg': True }]) EPIC_TABS_BLOCK = base.StatsBlock(_EPIC_TABS_VO_META, 'tabInfo') EPIC_TIME_STATS_BLOCK = base.StatsBlock(base.ListMeta(runtime=False),
from gui.battle_results.components import shared from gui.battle_results.components import style from gui.battle_results.components import vehicles from gui.battle_results.settings import BATTLE_RESULTS_RECORD as _RECORD from helpers import i18n _REGULAR_TABS_VO_META = base.ListMeta([{ 'label': i18n.makeString(MENU.FINALSTATISTIC_TABS_COMMONSTATS), 'linkage': 'CommonStats', 'showWndBg': False }, { 'label': i18n.makeString(MENU.FINALSTATISTIC_TABS_TEAMSTATS), 'linkage': 'TeamStatsUI', 'showWndBg': False }, { 'label': i18n.makeString(MENU.FINALSTATISTIC_TABS_DETAILSSTATS), 'linkage': 'DetailsStatsViewUI', 'showWndBg': True }]) _MULTI_TEAM_TABS_VO_META = base.ListMeta([{ 'label': MENU.FINALSTATISTIC_TABS_COMMONSTATS, 'linkage': 'CommonStats', 'showWndBg': False }, {
'playerResult': '', 'videoButtons': [] }) _BOOTCAMP_REWARDS_VO_META = base.DictMeta({ 'medals': [], 'ribbons': [], 'unlocks': [] }) _BOOTCAMP_STATVALUE_VO_META = base.DictMeta({'value': 0, 'str': '0'}) BOOTCAMP_RESULTS_BLOCK = base.StatsBlock(_BOOTCAMP_VO_META, '') BOOTCAMP_RESULTS_BLOCK.addComponent(0, bootcamp.BackgroundItem('background')) BOOTCAMP_RESULTS_BLOCK.addComponent( 1, bootcamp.RewardsBlock(_BOOTCAMP_REWARDS_VO_META, 'rewards')) BOOTCAMP_RESULTS_BLOCK.addComponent(2, bootcamp.HasUnlocksFlag('hasUnlocks')) BOOTCAMP_RESULTS_BLOCK.addComponent( 3, bootcamp.StatsBlock(base.ListMeta(), 'stats')) BOOTCAMP_RESULTS_BLOCK.addComponent( 4, bootcamp.ResultTypeStrItem('resultTypeStr')) BOOTCAMP_RESULTS_BLOCK.addComponent( 5, bootcamp.FinishReasonStrItem('finishReasonStr')) BOOTCAMP_RESULTS_BLOCK.addComponent(6, bootcamp.ShowRewardsFlag('showRewards')) BOOTCAMP_RESULTS_BLOCK.addComponent( 7, bootcamp.CreditsBlock(_BOOTCAMP_STATVALUE_VO_META, 'credits')) BOOTCAMP_RESULTS_BLOCK.addComponent( 8, bootcamp.XPBlock(_BOOTCAMP_STATVALUE_VO_META, 'xp')) BOOTCAMP_RESULTS_BLOCK.addComponent(9, bootcamp.FinishReasonItem('finishReason')) BOOTCAMP_RESULTS_BLOCK.addComponent(10, bootcamp.PlayerResultItem('playerResult')) BOOTCAMP_RESULTS_BLOCK.addComponent(11, bootcamp.VideoButtonsItem('videoButtons'))