'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') MULTI_TEAM_TABS_BLOCK = base.StatsBlock(_MULTI_TEAM_TABS_VO_META, 'tabInfo') _TEXT_VO_META = base.DictMeta({'windowTitle': i18n.makeString(MENU.FINALSTATISTIC_WINDOW_TITLE), 'shareButtonLabel': i18n.makeString(BATTLE_RESULTS.COMMON_RESULTSSHAREBTN), 'shareButtonTooltip': i18n.makeString(TOOLTIPS.BATTLERESULTS_FORTRESOURCE_RESULTSSHAREBTN), 'replayButtonLabel': i18n.makeString(BATTLE_RESULTS.REPLAYBTNLABEL), 'ownTitle': BATTLE_RESULTS.TEAM_STATS_OWNTEAM, 'enemyTitle': BATTLE_RESULTS.TEAM_STATS_ENEMYTEAM}) REGULAR_TEXT_STATS_BLOCK = base.StatsBlock(_TEXT_VO_META, 'textData') CLAN_TEXT_STATS_BLOCK = REGULAR_TEXT_STATS_BLOCK.clone() CLAN_TEXT_STATS_BLOCK.addComponent(0, common.AllyTeamClanTitle('ownTitle')) CLAN_TEXT_STATS_BLOCK.addComponent(1, common.EnemyTeamClanTitle('enemyTitle')) _COMMON_VO_META = base.DictMeta({'iconType': 'tank', 'sortDirection': 'descending', 'wasInBattle': True, 'arenaCreateTimeStr': '', 'arenaStr': '', 'arenaIcon': '', 'duration': '', 'bonusType': 0, 'clans': [],
# Embedded file name: scripts/client/gui/battle_results/templates/bootcamp.py from gui.battle_results.components import base, bootcamp _BOOTCAMP_VO_META = base.DictMeta({ 'background': '', 'unlocksAndMedals': [], 'hasUnlocks': False, 'stats': [], 'resultTypeStr': '', 'finishReasonStr': '', 'showRewards': False, 'playerVehicle': { 'name': '', 'typeIcon': '' }, '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(
from gui.battle_results.templates.ranked_battles import RANKED_RESULTS_BLOCK from gui.battle_results.templates.ranked_battles import RANKED_RESULTS_BLOCK_TITLE from gui.battle_results.templates.ranked_battles import RANKED_RESULTS_TEAMS_STATS_BLOCK __all__ = ('TOTAL_VO_META', 'MULTI_TEAM_TABS_BLOCK', 'REGULAR_TABS_BLOCK', 'VEHICLE_PROGRESS_STATS_BLOCK', 'QUESTS_PROGRESS_STATS_BLOCK', 'REGULAR_COMMON_STATS_BLOCK', 'REGULAR_PERSONAL_STATS_BLOCK', 'REGULAR_TEAMS_STATS_BLOCK', 'REGULAR_TEXT_STATS_BLOCK', 'CLAN_TEXT_STATS_BLOCK', 'STRONGHOLD_BATTLE_COMMON_STATS_BLOCK', 'FALLOUT_COMMON_STATS_BLOCK', 'CYBER_SPORT_BLOCK', 'SANDBOX_PERSONAL_STATS_BLOCK', 'SANDBOX_TEAM_ITEM_STATS_ENABLE', 'SANDBOX_PERSONAL_ACCOUNT_DB_ID', 'RANKED_COMMON_STATS_BLOCK', 'RANKED_TEAMS_STATS_BLOCK', 'RANKED_RESULTS_BLOCK', 'RANKED_RESULTS_BLOCK_TITLE') TOTAL_VO_META = base.DictMeta({ 'personal': {}, 'common': {}, 'team1': [], 'team2': [], 'textData': {}, 'quests': None, 'unlocks': [], 'tabInfo': [], 'cyberSport': None, 'isFreeForAll': False, 'closingTeamMemberStatsEnabled': True, 'selectedTeamMemberId': -1 }) # okay decompyling c:\Users\PC\wotmods\files\originals\res\packages\scripts\scripts\client\gui\battle_results\templates\__init__.pyc # decompiled 1 files: 1 okay, 0 failed, 0 verify failed # 2017.08.29 21:44:48 Støední Evropa (letní èas)
# Embedded file name: scripts/client/gui/battle_results/templates/cybersport.py from gui.battle_results.components import base CYBER_SPORT_BLOCK = base.StatsBlock(base.DictMeta({'teams': {}}), 'cyberSport')
# Python bytecode 2.7 (decompiled from Python 2.7) # Embedded file name: scripts/client/gui/battle_results/templates/battle_royale.py 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,
'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}, {'label': MENU.FINALSTATISTIC_TABS_TEAMSTATS, 'linkage': 'MultiteamStatsUI', 'showWndBg': False}, {'label': MENU.FINALSTATISTIC_TABS_DETAILSSTATS, 'linkage': 'DetailsStatsViewUI', 'showWndBg': True}]) REGULAR_TABS_BLOCK = base.StatsBlock(_REGULAR_TABS_VO_META, 'tabInfo') MULTI_TEAM_TABS_BLOCK = base.StatsBlock(_MULTI_TEAM_TABS_VO_META, 'tabInfo') _TEXT_VO_META = base.DictMeta({'windowTitle': i18n.makeString(MENU.FINALSTATISTIC_WINDOW_TITLE), 'shareButtonLabel': i18n.makeString(BATTLE_RESULTS.COMMON_RESULTSSHAREBTN), 'shareButtonTooltip': i18n.makeString(TOOLTIPS.BATTLERESULTS_FORTRESOURCE_RESULTSSHAREBTN), 'ownTitle': BATTLE_RESULTS.TEAM_STATS_OWNTEAM, 'enemyTitle': BATTLE_RESULTS.TEAM_STATS_ENEMYTEAM}) REGULAR_TEXT_STATS_BLOCK = base.StatsBlock(_TEXT_VO_META, 'textData') CLAN_TEXT_STATS_BLOCK = REGULAR_TEXT_STATS_BLOCK.clone() CLAN_TEXT_STATS_BLOCK.addComponent(0, common.AllyTeamClanTitle('ownTitle')) CLAN_TEXT_STATS_BLOCK.addComponent(1, common.EnemyTeamClanTitle('enemyTitle')) _COMMON_VO_META = base.DictMeta({'iconType': 'tank', 'sortDirection': 'descending', 'wasInBattle': True, 'arenaCreateTimeStr': '', 'arenaStr': '', 'arenaIcon': '', 'duration': '', 'bonusType': 0, 'clans': [],
('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'))) _RANKED_RESULTS_TEAM_DATA_VO_META.bind(vehicles.RankedResultsTeamDataStatsBlock) _RANKED_RESULTS_TEAM_PART_DATA_VO_META = base.PropertyMeta((('listData', [], 'listData'), ('backgroundType', '', 'backgroundType'), ('iconType', '', 'iconType'), ('backgroundBlink', False, 'backgroundBlink'), ('topIcon', '', 'icon'),
total['damageAssisted'] += data['damageAssisted'] total['damageAssistedCount'] += data['damageAssistedCount'] total['damageAssistedRadio'] += data['damageAssistedRadio'] total['damageAssistedTrack'] += data['damageAssistedTrack'] total['damageBlockedByArmor'] += data['damageBlockedByArmor'] total['shots'] += data['shots'] total['hits'] += data['hits'] total['piercings'] += data['piercings'] total['kills'] += data['kills'] total['spotted'] += data['spotted'] total['critsCount'] += data['critsCount'] total['ricochetsCount'] += data['ricochetsCount'] total['nonPenetrationsCount'] += data['nonPenetrationsCount'] _XVM_DATA_STATS_BLOCK = XvmDataBlock(base.DictMeta(), 'xvm_data', BATTLE_RESULTS_RECORD.PERSONAL) @overrideMethod(composer.StatsComposer, '__init__') def _StatsComposer__init__(base, self, *args): try: base(self, *args) self._block._meta._meta.update({'xvm_data': {}}) self._block._meta._unregistered.add('xvm_data') self._block.addNextComponent(_XVM_DATA_STATS_BLOCK.clone()) except: err(traceback.format_exc()) #####################################################################
# Python bytecode 2.7 (decompiled from Python 2.7) # Embedded file name: scripts/client/gui/battle_results/templates/maps_training.py from gui.battle_results.components import base, maps_training _MAPS_TRAINING_VO_META = base.DictMeta({'result': {}, 'goal': {}, 'duration': 0, 'stats': [], 'geometryId': 0, 'team': 0, 'vehicle': {}, 'doneValue': -1, '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'),
('title', '', 'title'), ('description', '', 'description'), ('topIcon', '', 'topIcon'), ('icon', '', 'rankIcon'))) _RANK_COMMON_VO_META.bind(common.RankChangesBlock) RANKED_COMMON_STATS_BLOCK.addNextComponent( common.RankChangesBlock(_RANK_COMMON_VO_META, 'rank')) 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': '', 'readyBtn': RANKED_BATTLES.BATTLERESULT_YES, 'readyBtnVisible': True, 'mainBackground': RES_ICONS.MAPS_ICONS_RANKEDBATTLES_BG_RANK_BLUR, 'leftData': {}, 'rightData': {} }) RANKED_RESULTS_BLOCK_TITLE = common.RankedResultsBlockTitle('title') _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'))) _RANKED_RESULTS_TEAM_DATA_VO_META.bind( vehicles.RankedResultsTeamDataStatsBlock) _RANKED_RESULTS_TEAM_PART_DATA_VO_META = base.PropertyMeta( (('listData', [], 'listData'), ('backgroundType', '', 'backgroundType'),
# Python bytecode 2.7 (decompiled from Python 2.7) # Embedded file name: scripts/client/gui/battle_results/templates/battle_royale.py 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,
8, vehicles.PersonalVehiclesRankedStatsBlock(base.ListMeta(), 'statValues', _RECORD.PERSONAL)) RANKED_RESULTS_BLOCK = base.DictMeta({ 'title': text_styles.promoTitle( backport.text(R.strings.ranked_battles.battleresult.headerText())), 'readyBtn': backport.text(R.strings.ranked_battles.battleResult.yes()), 'readyBtnVisible': True, 'mainBackground': backport.image(R.images.gui.maps.icons.rankedBattles.bg.main()), 'leftData': {}, 'rightData': {}, 'animationEnabledLabel': text_styles.main( backport.text(R.strings.ranked_battles.rankedBattlesBattleResults. animationCheckBoxLabel())), 'animationEnabled': True, 'showWidgetAnimation': True, 'statusText': '', 'state': None }) RANKED_ENABLE_ANIMATION_BLOCK = ranked.RankedResultsEnableAnimation( 'animationEnabled') RANKED_SHOW_WIDGET_BLOCK = ranked.RankedResultsShowWidgetAnimation(
total['damageAssistedRadio'] += data['damageAssistedRadio'] total['damageAssistedTrack'] += data['damageAssistedTrack'] total['damageAssistedStun'] += data['damageAssistedStun'] total['damageBlockedByArmor'] += data['damageBlockedByArmor'] total['shots'] += data['shots'] total['hits'] += data['hits'] total['piercings'] += data['piercings'] total['kills'] += data['kills'] total['spotted'] += data['spotted'] total['stunNum'] += data['stunNum'] total['stunDuration'] += data['stunDuration'] total['critsCount'] += data['critsCount'] total['ricochetsCount'] += data['ricochetsCount'] total['nonPenetrationsCount'] += data['nonPenetrationsCount'] _XVM_DATA_STATS_BLOCK = XvmDataBlock(base.DictMeta(), 'xvm_data', BATTLE_RESULTS_RECORD.PERSONAL) @overrideMethod(composer.StatsComposer, '__init__') def _StatsComposer__init__(base, self, *args): try: base(self, *args) self._block._meta._meta.update({'xvm_data':{}}) self._block._meta._unregistered.add('xvm_data') self._block.addNextComponent(_XVM_DATA_STATS_BLOCK.clone()) except: err(traceback.format_exc()) ##################################################################### # utility def calcDetailsSum(details, field):
# Python bytecode 2.7 (decompiled from Python 2.7) # Embedded file name: scripts/client/gui/battle_results/templates/bootcamp.py from gui.battle_results.components import base, bootcamp _BOOTCAMP_VO_META = base.DictMeta({ 'background': '', 'rewards': { 'medals': [], 'ribbons': [], 'unlocks': [] }, 'hasUnlocks': False, 'stats': [], 'resultTypeStr': '', 'finishReasonStr': '', 'showRewards': False, 'credits': { 'value': 0, 'str': '0' }, 'xp': { 'value': 0, 'str': '0' }, 'finishReason': '', 'playerResult': '', 'videoButtons': [] }) _BOOTCAMP_REWARDS_VO_META = base.DictMeta({ 'medals': [], 'ribbons': [], 'unlocks': []