'playerRealNameStr': '',
 'clanNameStr': '',
 'playerFullNameStr': '',
 'regionNameStr': '',
 'playerVehicles': [],
 'playerVehicleNames': [],
 'overtime': {},
 'totalFortResourceStr': '',
 'totalInfluenceStr': '',
 'timeStats': [],
 'clientArenaIdx': 0,
 'uiVisibility': 0,
 'eligibleForCrystalRewards': False,
 'rank': None,
 'epicMode': False})
_CLAN_COMMON_VO_META = base.PropertyMeta((('clanDBID', -1, 'clanDBID'), ('clanAbbrev', '', 'clanAbbrev')))
_CLAN_COMMON_VO_META.bind(common.ClanInfoBlock)
CLANS_COMMON_VO_META = base.PropertyMeta((('allies', common.ClanInfoBlock(field='allies'), 'allies'), ('enemies', common.ClanInfoBlock(field='enemies'), 'enemies')))
CLANS_COMMON_VO_META.bind(common.ClansInfoBlock)
_PERSONAL_VEHICLE_VO_META = base.PropertyMeta((('isPrematureLeave', False, 'isPrematureLeave'),
 ('flag', '', 'nationName'),
 ('tankIcon', 'empty_tank', 'vehicleIcon'),
 ('tankLevel', MIN_VEHICLE_LEVEL, 'vehicleLevel'),
 ('killerID', 0, 'killerID'),
 ('deathReason', -1, 'deathReason'),
 ('vehicleStateStr', '', 'vehicleState'),
 ('vehicleStatePrefixStr', '', 'vehicleStatePrefix'),
 ('vehicleStateSuffixStr', '', 'vehicleStateSuffix'),
 ('isKilledByTeamKiller', False, 'isKilledByTeamKiller'),
 ('isNotObserver', True, 'isVehicleStatusDefined')))
_PERSONAL_VEHICLE_VO_META.bind(personal.PersonalVehicleBlock)
    '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': {}
})
_PERSONAL_PLAYER_NAME_VO_META = base.PropertyMeta(
    (('userName', '', 'userName'), ('clanAbbrev', '', 'clanAbbrev')))
_PERSONAL_PLAYER_NAME_VO_META.bind(battle_royale.PersonalPlayerNameBlock)
_VEHICLE_STATUS_BLOCK_VO_META = base.PropertyMeta(
    (('killer', {}, 'killer'), ('vehicleState', -1, 'vehicleState'),
     ('isSelfDestroyer', False, 'isSelfDestroyer')))
_VEHICLE_STATUS_BLOCK_VO_META.bind(
    battle_royale.BattleRoyaleVehicleStatusBlock)
BR_COMMON_STATS_BLOCK = base.StatsBlock(_COMMON_VO_META, 'common')
BR_COMMON_STATS_BLOCK.addNextComponent(
    battle_royale.PersonalPlayerNameBlock(_PERSONAL_PLAYER_NAME_VO_META))
BR_COMMON_STATS_BLOCK.addNextComponent(
    battle_royale.BattleRoyaleArenaNameBlock('arenaStr'))
BR_COMMON_STATS_BLOCK.addNextComponent(
    battle_royale.BattleRoyalePlayerPlaceBlock('playerPlace'))
BR_COMMON_STATS_BLOCK.addNextComponent(
    battle_royale.BattleRoyaleIsSquadModeBlock('isSquadMode'))
Exemplo n.º 3
0
# Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/battle_results/templates/sandbox.py
from gui.battle_results.components import base
from gui.battle_results.components import personal
from gui.battle_results.components import shared
from gui.battle_results.templates import regular
_SANDBOX_NO_INCOME_ALERT_VO_META = base.PropertyMeta(
    (('icon', '', 'icon'), ('text', '', 'text')))
_SANDBOX_NO_INCOME_ALERT_VO_META.bind(personal.SandboxNoIncomeAlert)
SANDBOX_PERSONAL_STATS_BLOCK = regular.REGULAR_PERSONAL_STATS_BLOCK.clone()
SANDBOX_PERSONAL_STATS_BLOCK.addNextComponent(
    shared.TrueFlag('showNoIncomeAlert'))
SANDBOX_PERSONAL_STATS_BLOCK.addNextComponent(
    personal.SandboxNoIncomeAlert(field='noIncomeAlert'))
SANDBOX_TEAM_ITEM_STATS_ENABLE = shared.FalseFlag(
    'closingTeamMemberStatsEnabled')
SANDBOX_PERSONAL_ACCOUNT_DB_ID = personal.PersonalAccountDBID(
    'selectedTeamMemberId')
Exemplo n.º 4
0
# Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/battle_results/templates/ranked_battles.py
from gui.Scaleform.locale.RES_ICONS import RES_ICONS
from gui.battle_results.components import base, vehicles, common
from gui.battle_results.templates import regular
from gui.battle_results.settings import BATTLE_RESULTS_RECORD as _RECORD
from gui.Scaleform.locale.RANKED_BATTLES import RANKED_BATTLES
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),
)
STRONGHOLD_BATTLE_COMMON_STATS_BLOCK.addNextComponent(
    common.StrongholdBattleFinishResultBlock(None, '', _RECORD.PERSONAL,
                                             _RECORD.PERSONAL_AVATAR))
STRONGHOLD_VEHICLE_STATS_BLOCK_VO_META = base.PropertyMeta(
    (('shots', 0, 'shots'), ('hits', style.SlashedValuesBlock('hits'), 'hits'),
     ('explosionHits', 0, 'explosionHits'), ('damageDealt', 0, 'damageDealt'),
     ('sniperDamageDealt', 0,
      'sniperDamageDealt'), ('artilleryFortEquipDamageDealt', 0,
                             'artilleryFortEquipDamageDealt'),
     ('directHitsReceived', 0, 'directHitsReceived'), ('piercingsReceived', 0,
                                                       'piercingsReceived'),
     ('noDamageDirectHitsReceived', 0,
      'noDamageDirectHitsReceived'), ('explosionHitsReceived', 0,
                                      'explosionHitsReceived'),
     ('damageBlockedByArmor', 0,
      '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',
    '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': {},
    'arenaBonusType': 0,
    'hasPremium': False
})
_PERSONAL_PLAYER_NAME_VO_META = base.PropertyMeta(
    (('userName', '', 'userName'), ('clanAbbrev', '', 'clanAbbrev')))
_PERSONAL_PLAYER_NAME_VO_META.bind(battle_royale.PersonalPlayerNameBlock)
_VEHICLE_STATUS_BLOCK_VO_META = base.PropertyMeta(
    (('killer', {}, 'killer'), ('vehicleState', -1, 'vehicleState'),
     ('isSelfDestroyer', False, 'isSelfDestroyer')))
_VEHICLE_STATUS_BLOCK_VO_META.bind(
    battle_royale.BattleRoyaleVehicleStatusBlock)
BR_COMMON_STATS_BLOCK = base.StatsBlock(_COMMON_VO_META, 'common')
BR_COMMON_STATS_BLOCK.addNextComponent(
    battle_royale.PersonalPlayerNameBlock(_PERSONAL_PLAYER_NAME_VO_META))
BR_COMMON_STATS_BLOCK.addNextComponent(
    battle_royale.BattleRoyaleArenaNameBlock('arenaStr'))
BR_COMMON_STATS_BLOCK.addNextComponent(
    battle_royale.ArenaBonusTypeNameBlock('arenaBonusType'))
BR_COMMON_STATS_BLOCK.addNextComponent(
    battle_royale.BattleRoyalePlayerPlaceBlock('playerPlace'))
# Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/battle_results/templates/ranked_battles.py
from gui.impl import backport
from gui.impl.gen import R
from gui.battle_results.components import base, vehicles, ranked
from gui.battle_results.components import style
from gui.battle_results.templates import regular
from gui.battle_results.settings import BATTLE_RESULTS_RECORD as _RECORD
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'),
     ('descriptionIcon', '',
      'descriptionIcon'), ('icon', '', 'icon'), ('plateIcon', '', 'plateIcon'),
     ('shieldIcon', '', 'shieldIcon'), ('shieldCount', '', 'shieldCount')))
_RANK_COMMON_VO_META.bind(ranked.RankChangesBlock)
RANKED_VEHICLE_STATS_BLOCK_VO_META = base.PropertyMeta(
    (('xp', style.XpStatsItem('xp'),
      'xp'), ('xpForAttack', style.XpStatsItem('xpForAttack'), 'xpForAttack'),
     ('xpForAssist', style.XpStatsItem('xpForAssist'),
      'xpForAssist'), ('xpOther', style.XpStatsItem('xpOther'), 'xpOther'),
     ('shots', 0, 'shots'), ('hits', style.SlashedValuesBlock('hits'), 'hits'),
     ('explosionHits', 0, 'explosionHits'), ('damageDealt', 0, 'damageDealt'),
     ('sniperDamageDealt', 0,
      'sniperDamageDealt'), ('directHitsReceived', 0,
                             'directHitsReceived'), ('piercingsReceived', 0,
                                                     'piercingsReceived'),
     ('noDamageDirectHitsReceived', 0,
      'noDamageDirectHitsReceived'), ('explosionHitsReceived', 0,
Exemplo n.º 8
0
                                            'statValues'), 'statValues'))
EPIC_TEAM_ITEM_VO_META.bind(vehicles.EpicVehicleStatsBlock)
EPIC_VEHICLE_STATS_BLOCK_VO_META = base.PropertyMeta(
    (('shots', 0, 'shots'), ('hits', style.SlashedValuesBlock('hits'), 'hits'),
     ('explosionHits', 0, 'explosionHits'), ('damageDealt', 0, 'damageDealt'),
     ('sniperDamageDealt', 0,
      'sniperDamageDealt'), ('destructiblesDamageDealt', 0,
                             'destructiblesDamageDealt'),
     ('equipmentDamageDealt', 0,
      'equipmentDamageDealt'), ('directHitsReceived', 0,
                                'directHitsReceived'), ('piercingsReceived', 0,
                                                        'piercingsReceived'),
     ('noDamageDirectHitsReceived', 0,
      'noDamageDirectHitsReceived'), ('explosionHitsReceived', 0,
                                      'explosionHitsReceived'),
     ('damageBlockedByArmor', 0,
      'damageBlockedByArmor'), ('teamHitsDamage',
                                style.RedSlashedValuesBlock('teamHitsDamage'),
                                'teamHitsDamage'), ('spotted', 0, 'spotted'),
     ('damagedKilled', style.SlashedValuesBlock('damagedKilled'),
      'damagedKilled'), ('damageAssisted', 0, 'damageAssisted'),
     ('equipmentDamageAssisted', 0,
      'equipmentDamageAssisted'), ('damageAssistedStun', 0,
                                   'damageAssistedStun'), ('stunNum', 0,
                                                           'stunNum'),
     ('capturePointsVal', style.SlashedValuesBlock('capturePointsVal'),
      'capturePoints'), ('timesDestroyed', 0,
                         'timesDestroyed'), ('teamSpecificStat', 0,
                                             'teamSpecificStat')))
EPIC_VEHICLE_STATS_BLOCK_VO_META.bind(vehicles.EpicVehicleStatValuesBlock)
EPIC_TEAMS_STATS_BLOCK = vehicles.TwoTeamsStatsBlock(