Advertisement
Soeren_K_K

Untitled

Jun 8th, 2012
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 72.83 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <package>
  3.    
  4.     <trigger name="PlayerStatsResultRankedMList"/>
  5.     <trigger name="PlayerStatsResultCasualMList"/>
  6.     <trigger name="PlayerStatsResultMList"/>
  7.    
  8.     <trigger name="PlayerStatsStatus"/>
  9.     <trigger name="PlayerStatsResult"/>
  10.    
  11.     <!-- show_stats -->
  12.     <form
  13.         name="PlayerStats"
  14.         host="!masterserver"
  15.         method="get"
  16.         target="/client_requester.php"
  17.         statustrigger="PlayerStatsStatus"
  18.         resulttrigger="PlayerStatsResult"
  19.         resultparam0="nickname"
  20.         resultparam1="name"
  21.         resultparam2="rank"
  22.         resultparam3="level"
  23.         resultparam4="account_id"
  24.         resultparam5="acc_games_played"
  25.         resultparam6="acc_wins"
  26.         resultparam7="acc_losses"
  27.         resultparam8="acc_concedes"
  28.         resultparam9="acc_concedevotes"
  29.         resultparam10="acc_buybacks"
  30.         resultparam11="acc_discos"
  31.         resultparam12="acc_kicked"
  32.         resultparam13="acc_pub_skill"
  33.         resultparam14="acc_pub_count"
  34.         resultparam15="acc_amm_solo_rating"
  35.         resultparam16="acc_amm_solo_count"
  36.         resultparam17="acc_amm_team_rating"
  37.         resultparam18="acc_amm_team_count"
  38.         resultparam19="acc_avg_score"
  39.         resultparam20="acc_herokills"
  40.         resultparam21="acc_herodmg"
  41.         resultparam22="acc_heroexp"
  42.         resultparam23="acc_herokillsgold"
  43.         resultparam24="acc_heroassists"
  44.         resultparam25="acc_deaths"
  45.         resultparam26="acc_goldlost2death"
  46.         resultparam27="acc_secs_dead"
  47.         resultparam28="acc_teamcreepkills"
  48.         resultparam29="acc_teamcreepdmg"
  49.         resultparam30="acc_teamcreepexp"
  50.         resultparam31="acc_teamcreepgold"
  51.         resultparam32="acc_neutralcreepkills"
  52.         resultparam33="acc_neutralcreepdmg"
  53.         resultparam34="acc_neutralcreepexp"
  54.         resultparam35="acc_neutralcreepgold"
  55.         resultparam36="acc_bdmg"
  56.         resultparam37="acc_bdmgexp"
  57.         resultparam38="acc_razed"
  58.         resultparam39="acc_bgold"
  59.         resultparam40="acc_denies"
  60.         resultparam41="acc_exp_denied"
  61.         resultparam42="acc_gold"
  62.         resultparam43="acc_gold_spend"
  63.         resultparam44="acc_exp"
  64.         resultparam45="acc_actions"
  65.         resultparam46="acc_secs"
  66.         resultparam47="acc_consumables"
  67.         resultparam48="acc_wards"
  68.         resultparam49="acc_em_played"
  69.         resultparam50="maxXP"
  70.         resultparam51="last_activity"
  71.         resultparam52="matchIds"
  72.         resultparam53="matchDates"
  73.         resultparam54="favHero1"
  74.         resultparam55="favHero2"
  75.         resultparam56="favHero3"
  76.         resultparam57="favHero4"
  77.         resultparam58="favHero5"
  78.         resultparam59="favHero1Time"
  79.         resultparam60="favHero2Time"
  80.         resultparam61="favHero3Time"
  81.         resultparam62="favHero4Time"
  82.         resultparam63="favHero5Time"
  83.         resultparam64="xp2nextLevel"
  84.         resultparam65="xpPercent"
  85.         resultparam66="percentEM"
  86.         resultparam67="k_d_a"
  87.         resultparam68="avgGameLength"
  88.         resultparam69="avgXP_min"
  89.         resultparam70="avgDenies"
  90.         resultparam71="avgCreepKills"
  91.         resultparam72="avgNeutralKills"
  92.         resultparam73="avgActions_min"
  93.         resultparam74="avgWardsUsed"
  94.         resultparam75="create_date"
  95.         resultparam76="favHero1name"
  96.         resultparam77="favHero2name"
  97.         resultparam78="favHero3name"
  98.         resultparam79="favHero4name"
  99.         resultparam80="favHero5name"
  100.         resultparam81="favHero1id"
  101.         resultparam82="favHero2id"
  102.         resultparam83="favHero3id"
  103.         resultparam84="favHero4id"
  104.         resultparam85="favHero5id"
  105.         resultparam86="error"
  106.         resultparam87="acc_level"      
  107.         resultparam88="selected_upgrades"
  108.         resultparam89="cs_games_played"
  109.         resultparam90="rnk_games_played"
  110.         resultparam91="cs_discos"
  111.         resultparam92="rnk_discos"     
  112.         resultparam93="acc_bloodlust"
  113.         resultparam94="acc_doublekill"
  114.         resultparam95="acc_triplekill"
  115.         resultparam96="acc_quadkill"
  116.         resultparam97="acc_annihilation"
  117.         resultparam98="acc_ks3"
  118.         resultparam99="acc_ks4"
  119.         resultparam100="acc_ks5"
  120.         resultparam101="acc_ks6"
  121.         resultparam102="acc_ks7"
  122.         resultparam103="acc_ks8"
  123.         resultparam104="acc_ks9"
  124.         resultparam105="acc_ks10"
  125.         resultparam106="acc_ks15"
  126.         resultparam107="acc_smackdown"
  127.         resultparam108="acc_humiliation"
  128.         resultparam109="acc_nemesis"
  129.         resultparam110="acc_retribution"
  130.         resultparam111="total_level_exp"
  131.         resultparam112="acc_time_earning_exp"
  132.         resultparam113="level"
  133.         resultparam114="level_exp"
  134.         resultparam115="discos"
  135.         resultparam116="possible_discos"
  136.         resultparam117="games_played"
  137.         resultparam118="account_type"
  138.         resultparam119="standing"  
  139.         resultparam120="level_percent"     
  140.         resultparam121="max_exp"
  141.         resultparam122="min_exp"
  142.         resultparam123="mid_games_played"
  143.         resultparam124="mid_discos"
  144.     />
  145.  
  146.     <trigger name="PlayerStatsStatusRanked"/>
  147.     <trigger name="PlayerStatsResultRanked"/>
  148.    
  149.     <form
  150.         name="PlayerStatsRanked"
  151.         host="!masterserver"
  152.         method="get"
  153.         target="/client_requester.php"
  154.         statustrigger="PlayerStatsStatusRanked"
  155.         resulttrigger="PlayerStatsResultRanked"
  156.         resultparam0="nickname"
  157.         resultparam1="name"
  158.         resultparam2="rank"
  159.         resultparam3="rnk_level"
  160.         resultparam4="account_id"
  161.         resultparam5="rnk_games_played"
  162.         resultparam6="rnk_wins"
  163.         resultparam7="rnk_losses"
  164.         resultparam8="rnk_concedes"
  165.         resultparam9="rnk_concedevotes"
  166.         resultparam10="rnk_buybacks"
  167.         resultparam11="rnk_discos"
  168.         resultparam12="rnk_kicked"
  169.         resultparam13="smr"
  170.         resultparam14="rnk_pub_count"
  171.         resultparam15="rnk_amm_solo_rating"
  172.         resultparam16="rnk_amm_solo_count"
  173.         resultparam17="rnk_amm_team_rating"
  174.         resultparam18="rnk_amm_team_count"
  175.         resultparam19="rnk_avg_score"
  176.         resultparam20="rnk_herokills"
  177.         resultparam21="rnk_herodmg"
  178.         resultparam22="rnk_heroexp"
  179.         resultparam23="rnk_herokillsgold"
  180.         resultparam24="rnk_heroassists"
  181.         resultparam25="rnk_deaths"
  182.         resultparam26="rnk_goldlost2death"
  183.         resultparam27="rnk_secs_dead"
  184.         resultparam28="rnk_teamcreepkills"
  185.         resultparam29="rnk_teamcreepdmg"
  186.         resultparam30="rnk_teamcreepexp"
  187.         resultparam31="rnk_teamcreepgold"
  188.         resultparam32="rnk_neutralcreepkills"
  189.         resultparam33="rnk_neutralcreepdmg"
  190.         resultparam34="rnk_neutralcreepexp"
  191.         resultparam35="rnk_neutralcreepgold"
  192.         resultparam36="rnk_bdmg"
  193.         resultparam37="rnk_bdmgexp"
  194.         resultparam38="rnk_razed"
  195.         resultparam39="rnk_bgold"
  196.         resultparam40="rnk_denies"
  197.         resultparam41="rnk_exp_denied"
  198.         resultparam42="rnk_gold"
  199.         resultparam43="rnk_gold_spend"
  200.         resultparam44="rnk_exp"
  201.         resultparam45="rnk_actions"
  202.         resultparam46="rnk_secs"
  203.         resultparam47="rnk_consumables"
  204.         resultparam48="rnk_wards"
  205.         resultparam49="rnk_em_played"
  206.         resultparam50="maxXP"
  207.         resultparam51="last_activity"
  208.         resultparam52="matchIds"
  209.         resultparam53="matchDates"
  210.         resultparam54="favHero1"
  211.         resultparam55="favHero2"
  212.         resultparam56="favHero3"
  213.         resultparam57="favHero4"
  214.         resultparam58="favHero5"
  215.         resultparam59="favHero1Time"
  216.         resultparam60="favHero2Time"
  217.         resultparam61="favHero3Time"
  218.         resultparam62="favHero4Time"
  219.         resultparam63="favHero5Time"
  220.         resultparam64="xp2nextLevel"
  221.         resultparam65="xpPercent"
  222.         resultparam66="percentEM"
  223.         resultparam67="k_d_a"
  224.         resultparam68="avgGameLength"
  225.         resultparam69="avgXP_min"
  226.         resultparam70="avgDenies"
  227.         resultparam71="avgCreepKills"
  228.         resultparam72="avgNeutralKills"
  229.         resultparam73="avgActions_min"
  230.         resultparam74="avgWardsUsed"
  231.         resultparam75="create_date"
  232.         resultparam76="favHero1name"
  233.         resultparam77="favHero2name"
  234.         resultparam78="favHero3name"
  235.         resultparam79="favHero4name"
  236.         resultparam80="favHero5name"
  237.         resultparam81="favHero1id"
  238.         resultparam82="favHero2id"
  239.         resultparam83="favHero3id"
  240.         resultparam84="favHero4id"
  241.         resultparam85="favHero5id"
  242.         resultparam86="error"
  243.         resultparam87="rnk_level"
  244.         resultparam88="selected_upgrades"
  245.         resultparam89="acc_games_played"
  246.         resultparam90="cs_games_played"
  247.         resultparam91="cs_discos"
  248.         resultparam92="acc_discos"     
  249.         resultparam93="rnk_bloodlust"
  250.         resultparam94="rnk_doublekill"
  251.         resultparam95="rnk_triplekill"
  252.         resultparam96="rnk_quadkill"
  253.         resultparam97="rnk_annihilation"
  254.         resultparam98="rnk_ks3"
  255.         resultparam99="rnk_ks4"
  256.         resultparam100="rnk_ks5"
  257.         resultparam101="rnk_ks6"
  258.         resultparam102="rnk_ks7"
  259.         resultparam103="rnk_ks8"
  260.         resultparam104="rnk_ks9"
  261.         resultparam105="rnk_ks10"
  262.         resultparam106="rnk_ks15"
  263.         resultparam107="rnk_smackdown"
  264.         resultparam108="rnk_humiliation"
  265.         resultparam109="rnk_nemesis"
  266.         resultparam110="rnk_retribution"
  267.         resultparam111="total_level_exp"
  268.         resultparam112="rnk_time_earning_exp"
  269.         resultparam113="level"
  270.         resultparam114="level_exp"
  271.         resultparam115="discos"
  272.         resultparam116="possible_discos"
  273.         resultparam117="games_played"
  274.         resultparam118="account_type"
  275.         resultparam119="standing"
  276.         resultparam120="level_percent"     
  277.         resultparam121="max_exp"
  278.         resultparam122="min_exp"   
  279.         resultparam123="mid_games_played"
  280.         resultparam124="mid_discos"    
  281.     />
  282.    
  283.    
  284.     <trigger name="PlayerStatsStatusCasual"/>
  285.     <trigger name="PlayerStatsResultCasual"/>
  286.    
  287.     <form
  288.         name="PlayerStatsCasual"
  289.         host="!masterserver"
  290.         method="get"
  291.         target="/client_requester.php"
  292.         statustrigger="PlayerStatsStatusCasual"
  293.         resulttrigger="PlayerStatsResultCasual"
  294.         resultparam0="nickname"
  295.         resultparam1="name"
  296.         resultparam2="rank"
  297.         resultparam3="cs_level"
  298.         resultparam4="account_id"
  299.         resultparam5="cs_games_played"
  300.         resultparam6="cs_wins"
  301.         resultparam7="cs_losses"
  302.         resultparam8="cs_concedes"
  303.         resultparam9="cs_concedevotes"
  304.         resultparam10="cs_buybacks"
  305.         resultparam11="cs_discos"
  306.         resultparam12="cs_kicked"
  307.         resultparam13="cs_amm_team_rating"
  308.         resultparam14="cs_pub_count"
  309.         resultparam15="cs_amm_solo_rating"
  310.         resultparam16="cs_amm_solo_count"
  311.         resultparam17="cs_amm_team_rating"
  312.         resultparam18="cs_amm_team_count"
  313.         resultparam19="cs_avg_score"
  314.         resultparam20="cs_herokills"
  315.         resultparam21="cs_herodmg"
  316.         resultparam22="cs_heroexp"
  317.         resultparam23="cs_herokillsgold"
  318.         resultparam24="cs_heroassists"
  319.         resultparam25="cs_deaths"
  320.         resultparam26="cs_goldlost2death"
  321.         resultparam27="cs_secs_dead"
  322.         resultparam28="cs_teamcreepkills"
  323.         resultparam29="cs_teamcreepdmg"
  324.         resultparam30="cs_teamcreepexp"
  325.         resultparam31="cs_teamcreepgold"
  326.         resultparam32="cs_neutralcreepkills"
  327.         resultparam33="cs_neutralcreepdmg"
  328.         resultparam34="cs_neutralcreepexp"
  329.         resultparam35="cs_neutralcreepgold"
  330.         resultparam36="cs_bdmg"
  331.         resultparam37="cs_bdmgexp"
  332.         resultparam38="cs_razed"
  333.         resultparam39="cs_bgold"
  334.         resultparam40="cs_denies"
  335.         resultparam41="cs_exp_denied"
  336.         resultparam42="cs_gold"
  337.         resultparam43="cs_gold_spend"
  338.         resultparam44="cs_exp"
  339.         resultparam45="cs_actions"
  340.         resultparam46="cs_secs"
  341.         resultparam47="cs_consumables"
  342.         resultparam48="cs_wards"
  343.         resultparam49="cs_em_played"
  344.         resultparam50="maxXP"
  345.         resultparam51="last_activity"
  346.         resultparam52="matchIds"
  347.         resultparam53="matchDates"
  348.         resultparam54="favHero1"
  349.         resultparam55="favHero2"
  350.         resultparam56="favHero3"
  351.         resultparam57="favHero4"
  352.         resultparam58="favHero5"
  353.         resultparam59="favHero1Time"
  354.         resultparam60="favHero2Time"
  355.         resultparam61="favHero3Time"
  356.         resultparam62="favHero4Time"
  357.         resultparam63="favHero5Time"
  358.         resultparam64="xp2nextLevel"
  359.         resultparam65="xpPercent"
  360.         resultparam66="percentEM"
  361.         resultparam67="k_d_a"
  362.         resultparam68="avgGameLength"
  363.         resultparam69="avgXP_min"
  364.         resultparam70="avgDenies"
  365.         resultparam71="avgCreepKills"
  366.         resultparam72="avgNeutralKills"
  367.         resultparam73="avgActions_min"
  368.         resultparam74="avgWardsUsed"
  369.         resultparam75="create_date"
  370.         resultparam76="favHero1name"
  371.         resultparam77="favHero2name"
  372.         resultparam78="favHero3name"
  373.         resultparam79="favHero4name"
  374.         resultparam80="favHero5name"
  375.         resultparam81="favHero1id"
  376.         resultparam82="favHero2id"
  377.         resultparam83="favHero3id"
  378.         resultparam84="favHero4id"
  379.         resultparam85="favHero5id"
  380.         resultparam86="error"
  381.         resultparam87="cs_level"
  382.         resultparam88="selected_upgrades"
  383.         resultparam89="acc_games_played"
  384.         resultparam90="rnk_games_played"
  385.         resultparam91="acc_discos"
  386.         resultparam92="rnk_discos"     
  387.         resultparam93="cs_bloodlust"
  388.         resultparam94="cs_doublekill"
  389.         resultparam95="cs_triplekill"
  390.         resultparam96="cs_quadkill"
  391.         resultparam97="cs_annihilation"
  392.         resultparam98="cs_ks3"
  393.         resultparam99="cs_ks4"
  394.         resultparam100="cs_ks5"
  395.         resultparam101="cs_ks6"
  396.         resultparam102="cs_ks7"
  397.         resultparam103="cs_ks8"
  398.         resultparam104="cs_ks9"
  399.         resultparam105="cs_ks10"
  400.         resultparam106="cs_ks15"
  401.         resultparam107="cs_smackdown"
  402.         resultparam108="cs_humiliation"
  403.         resultparam109="cs_nemesis"
  404.         resultparam110="cs_retribution"
  405.         resultparam111="total_level_exp"
  406.         resultparam112="cs_time_earning_exp"
  407.         resultparam113="level"
  408.         resultparam114="level_exp"
  409.         resultparam115="discos"
  410.         resultparam116="possible_discos"
  411.         resultparam117="games_played"      
  412.         resultparam118="account_type"
  413.         resultparam119="standing"  
  414.         resultparam120="level_percent"     
  415.         resultparam121="max_exp"
  416.         resultparam122="min_exp"   
  417.         resultparam123="mid_games_played"
  418.         resultparam124="mid_discos"    
  419.     />
  420.  
  421.     <!-- Favorite Heroes -->
  422.     <panel name="playerstats_parse_icon" width="0" height="0" noclick="true" color="invisible" onload="CreateString('_playerstats_hero_icon_temp'); CreateString('_playerstats_hero_icon_output');"
  423.     onevent="
  424.         if(StringEquals(_playerstats_hero_icon_temp,'forsakenarcher'), Set('_playerstats_hero_icon_temp', 'forsaken_archer'));
  425.         if(StringEquals(_playerstats_hero_icon_temp,'corrupteddisciple'), Set('_playerstats_hero_icon_temp', 'corrupted_disciple'));
  426.         if(StringEquals(_playerstats_hero_icon_temp,'sandwraith'), Set('_playerstats_hero_icon_temp', 'sand_wraith'));
  427.         if(StringEquals(_playerstats_hero_icon_temp,'witchslayer'), Set('_playerstats_hero_icon_temp', 'witch_slayer'));
  428.         if(StringEquals(_playerstats_hero_icon_temp,'dwarfmagi'), Set('_playerstats_hero_icon_temp', 'dwarf_magi'));
  429.         if(StringEquals(_playerstats_hero_icon_temp,'flintbeastwood'), Set('_playerstats_hero_icon_temp', 'flint_beastwood'));
  430.         if(StringEquals(_playerstats_hero_icon_temp,'doctorrepulsor'), Set('_playerstats_hero_icon_temp', 'doctor_repulsor'));
  431.         if(StringEquals(_playerstats_hero_icon_temp,'bombardier'), Set('_playerstats_hero_icon_temp', 'bomb'));
  432.         if(StringEquals(_playerstats_hero_icon_temp,'emeraldwarden'), Set('_playerstats_hero_icon_temp', 'emerald_warden'));
  433.         if(StringEquals(_playerstats_hero_icon_temp,'monkeyking'), Set('_playerstats_hero_icon_temp', 'monkey_king'));
  434.         if(StringEquals(_playerstats_hero_icon_temp,'masterofarms'), Set('_playerstats_hero_icon_temp', 'master_of_arms'));
  435.        
  436.         If(!StringEmpty(_playerstats_hero_icon_temp), Set('_playerstats_hero_icon_output', '/heroes/' # _playerstats_hero_icon_temp # '/icon.tga'), Set('_playerstats_hero_icon_output', '/ui/common/ability_coverup.tga'));
  437.         if(StringEquals(_playerstats_hero_icon_temp,'hiro'), Set('_playerstats_hero_icon_output', '/heroes/hiro/icons/hero.tga'));
  438.         if(StringEquals(_playerstats_hero_icon_temp,'pollywogpriest'), Set('_playerstats_hero_icon_output', '/heroes/pollywogpriest/icons/hero.tga'));
  439.         if(StringEquals(_playerstats_hero_icon_temp,'electrician'), Set('_playerstats_hero_icon_output', '/heroes/electrician/icons/hero.tga'));
  440.         if(StringEquals(_playerstats_hero_icon_temp,'rocky'), Set('_playerstats_hero_icon_output', '/heroes/rocky/hero.tga'));
  441.         if(StringEquals(_playerstats_hero_icon_temp,'hammerstorm'), Set('_playerstats_hero_icon_output', '/heroes/hammerstorm/icons/hero.tga'));
  442.         if(StringEquals(_playerstats_hero_icon_temp,'krixi'), Set('_playerstats_hero_icon_output', '/heroes/krixi/icons/hero.tga'));
  443.         if(StringEquals(_playerstats_hero_icon_temp,'yogi'), Set('_playerstats_hero_icon_output', '/heroes/yogi/icons/hero.tga'));
  444.         if(StringEquals(_playerstats_hero_icon_temp,'kunas'), Set('_playerstats_hero_icon_output', '/heroes/kunas/icons/hero.tga'));
  445.         if(StringEquals(_playerstats_hero_icon_temp,'cthulhuphant'), Set('_playerstats_hero_icon_output', '/heroes/cthulhuphant/alt/icon.tga'));
  446.     "
  447.     />
  448.    
  449.     <panel
  450.         name="player_stats_submit"
  451.         noclick="true"
  452.         color="invisible"
  453.         onload="CreateString('_player_stats_searchname');"
  454.         onevent="
  455.             If(
  456.                 StringEquals(_playerstats_show_panel, 'stats_panel_ranked'),
  457.                 CallEvent('player_stats_submit_ranked')
  458.             );
  459.             If(
  460.                 StringEquals(_playerstats_show_panel, 'stats_panel_public'),
  461.                 CallEvent('player_stats_submit_public')
  462.             );
  463.             If(
  464.                 StringEquals(_playerstats_show_panel, 'stats_panel_casual'),
  465.                 CallEvent('player_stats_submit_casual')
  466.             );
  467.         "
  468.     />
  469.    
  470.     <panel
  471.         name="player_stats_submit_public"
  472.         noclick="true"
  473.         color="invisible"
  474.         onevent="SubmitForm('PlayerStats', 'f', 'show_stats', 'nickname', StripClanTag(_player_stats_searchname), 'cookie', GetCookie(), 'table', 'player');"
  475.     />
  476.    
  477.     <panel
  478.         name="player_stats_submit_ranked"
  479.         noclick="true"
  480.         color="invisible"
  481.         onevent="SubmitForm('PlayerStatsRanked', 'f', 'show_stats', 'nickname', StripClanTag(_player_stats_searchname), 'cookie', GetCookie(), 'table', 'ranked');"
  482.     />
  483.    
  484.     <panel
  485.         name="player_stats_submit_casual"
  486.         noclick="true"
  487.         color="invisible"
  488.         onevent="SubmitForm('PlayerStatsCasual', 'f', 'show_stats', 'nickname', StripClanTag(_player_stats_searchname), 'cookie', GetCookie(), 'table', 'casual');"
  489.     />
  490.    
  491.     <template name="stats_lastmatches_match">
  492.         <panel float="right" x=".5h" noclick="true">
  493.             <label textvalign="center" font="dyn_9" width="8.0h" shadow="true" color=".8 .8 .8 1" noclick="true" watch="{resulttrigger=PlayerStatsResult}" ontrigger="SetText(_playerstats_matchlist_match{matchnum}_date);">{match_date}</label>
  494.             <label textvalign="center" font="dyn_9" width="8.0h" shadow="true" color="white" noclick="true" watch="{resulttrigger=PlayerStatsResult}" ontrigger="SetText(_playerstats_matchlist_match{matchnum}_id);">{match_id}</label>
  495.             <instance
  496.                 name="button2"
  497.                 width="4.0h"
  498.                 height="2.0h"
  499.                 borderthickness="0.6h"
  500.                 align="center" valign="center"
  501.                 font="dyn_9"
  502.                 label="general_view"
  503.                 onclick="Trigger('matchstats_viewuser', _player_stats_searchname); _stats_last_replay_id = _playerstats_matchlist_match{matchnum}_id; _stats_last_match_id = _playerstats_matchlist_match{matchnum}_id; Set('_mainmenu_currentpanel', 'match_stats'); CallEvent('MainMenuPanelSwitcher');"
  504.             />
  505.         </panel>
  506.     </template>
  507.    
  508.     <template name="stats_lastmatches_matchhelper">
  509.         <panel
  510.             color="invisible"
  511.             noclick="true"
  512.             onload="CreateString('_playerstats_matchlist_match{matchnum}_id'); CreateString('_playerstats_matchlist_match{matchnum}_date');"
  513.             watch="{resulttrigger=PlayerStatsResult}"
  514.             ontrigger="
  515.                 Set('_playerstats_matchlist_match{matchnum}_id', Trim(SubString(param52, ({matchnum} * 10), 10)));
  516.                 Set('_playerstats_matchlist_match{matchnum}_date', SubString(param53, ({matchnum} * 10), 10));
  517.             "
  518.             watch1="{resulttrigger=PlayerStatsResult}MList"
  519.             ontrigger1="
  520.                 Call('{match_listbox}', 'If(!HasListItem(_playerstats_matchlist_match{matchnum}_id) and !StringEmpty(_playerstats_matchlist_match{matchnum}_id), AddTemplateListItem(\'stats_lastmatches_match\', _playerstats_matchlist_match{matchnum}_id, \'match_id\', _playerstats_matchlist_match{matchnum}_id, \'match_date\', _playerstats_matchlist_match{matchnum}_date, \'matchnum\', \'{matchnum}\'));');
  521.                                        
  522.                 If({matchnum} == 0, Call('matchreplays_selectedplayer_dropdown', 'ClearItems();'));            
  523.                 Call('matchreplays_selectedplayer_dropdown', 'If(!HasListItem(_player_stats_searchname) and !StringEmpty(_player_stats_searchname), Split(AddTemplateListItem(\'Ncombobox_item\', _player_stats_searchname, \'label\', _player_stats_searchname), SetSelectedItemByValue(_player_stats_searchname)));  If(!HasListItem(GetAccountName()), AddTemplateListItem(\'Ncombobox_item\', GetAccountName(), \'label\', GetAccountName())); SetVisible(GetNumListItems() gt 1);');
  524.             "
  525.         />
  526.     </template>
  527.    
  528.     <template name="statistic">
  529.         <panel height="50" width="99%" color="invisible">
  530.             <frame texture="/ui/frames/rounded_bg_white.tga" borderthickness="4" color="#560001"/>
  531.             <frame texture="/ui/frames/roundframe.tga" color="#662222" borderthickness="4"/>
  532.             <panel width="50" align="left" color="invisible">
  533.                 <panel x="3" width="44" height="44" color="red" valign="center"/>
  534.                 <image x="4" valign="center" width="42" height="42" texture="{icon}"/>
  535.             </panel>
  536.             <panel width="-53" align="right" color="invisible">
  537.                 <label width="100%" height="60%" valign="top" textvalign="center" align="left" font="chat_14" color="white" shadow="true">{label}</label> <!-- header label -->
  538.                 <label width="100%" height="60%" valign="bottom" textvalign="center" align="center" font="chat_14" color="yellow" shadow="true" watch1="{triggername1}" ontrigger1="{triggereffect1}" watch2="{triggername2}" ontrigger2="{triggereffect2}" watch3="{triggername3}" ontrigger3="{triggereffect3}">{stat}</label> <!-- header label --> 
  539.             </panel>                   
  540.         </panel>   
  541.     </template>
  542.    
  543.     <template name="flavorkills">
  544.         <panel height="2.0h" noclick="1">
  545.             <label width="65%" height="100%" align="left" textalign="right" textvalign="center" font="dyn_10" color="{labeltextcolor}" shadow="1" content="{id}" noclick="1" />
  546.             <label x="19%" width="100%" height="100%" textalign="center" textvalign="center" font="dyn_10" color="{labeltextcolor}" shadow="1" content=":" noclick="1" />
  547.             <label width="27%" height="100%" align="right" textalign="left" textvalign="center" font="dyn_10" color="white" shadow="1" noclick="1" content="0" watch="{resulttrigger}" ontrigger="{ontrigger}" />
  548.         </panel>   
  549.     </template>
  550.    
  551.     <template name="player_stats_panel">
  552.    
  553.         <instance name="stats_lastmatches_matchhelper" matchnum="0" match_listbox="{match_listbox}" resulttrigger="{resulttrigger=PlayerStatsResult}" />
  554.         <instance name="stats_lastmatches_matchhelper" matchnum="1" match_listbox="{match_listbox}" resulttrigger="{resulttrigger=PlayerStatsResult}" />
  555.         <instance name="stats_lastmatches_matchhelper" matchnum="2" match_listbox="{match_listbox}" resulttrigger="{resulttrigger=PlayerStatsResult}" />
  556.         <instance name="stats_lastmatches_matchhelper" matchnum="3" match_listbox="{match_listbox}" resulttrigger="{resulttrigger=PlayerStatsResult}" />
  557.         <instance name="stats_lastmatches_matchhelper" matchnum="4" match_listbox="{match_listbox}" resulttrigger="{resulttrigger=PlayerStatsResult}" />
  558.         <instance name="stats_lastmatches_matchhelper" matchnum="5" match_listbox="{match_listbox}" resulttrigger="{resulttrigger=PlayerStatsResult}" />
  559.         <instance name="stats_lastmatches_matchhelper" matchnum="6" match_listbox="{match_listbox}" resulttrigger="{resulttrigger=PlayerStatsResult}" />
  560.         <instance name="stats_lastmatches_matchhelper" matchnum="7" match_listbox="{match_listbox}" resulttrigger="{resulttrigger=PlayerStatsResult}" />
  561.         <instance name="stats_lastmatches_matchhelper" matchnum="8" match_listbox="{match_listbox}" resulttrigger="{resulttrigger=PlayerStatsResult}" />
  562.         <instance name="stats_lastmatches_matchhelper" matchnum="9" match_listbox="{match_listbox}" resulttrigger="{resulttrigger=PlayerStatsResult}" />
  563.         <instance name="stats_lastmatches_matchhelper" matchnum="10" match_listbox="{match_listbox}" resulttrigger="{resulttrigger=PlayerStatsResult}" />
  564.         <instance name="stats_lastmatches_matchhelper" matchnum="11" match_listbox="{match_listbox}" resulttrigger="{resulttrigger=PlayerStatsResult}" />
  565.         <instance name="stats_lastmatches_matchhelper" matchnum="12" match_listbox="{match_listbox}" resulttrigger="{resulttrigger=PlayerStatsResult}" />
  566.         <instance name="stats_lastmatches_matchhelper" matchnum="13" match_listbox="{match_listbox}" resulttrigger="{resulttrigger=PlayerStatsResult}" />
  567.         <instance name="stats_lastmatches_matchhelper" matchnum="14" match_listbox="{match_listbox}" resulttrigger="{resulttrigger=PlayerStatsResult}" />
  568.         <instance name="stats_lastmatches_matchhelper" matchnum="15" match_listbox="{match_listbox}" resulttrigger="{resulttrigger=PlayerStatsResult}" />
  569.         <instance name="stats_lastmatches_matchhelper" matchnum="16" match_listbox="{match_listbox}" resulttrigger="{resulttrigger=PlayerStatsResult}" />
  570.         <instance name="stats_lastmatches_matchhelper" matchnum="17" match_listbox="{match_listbox}" resulttrigger="{resulttrigger=PlayerStatsResult}" />
  571.         <instance name="stats_lastmatches_matchhelper" matchnum="18" match_listbox="{match_listbox}" resulttrigger="{resulttrigger=PlayerStatsResult}" />
  572.         <instance name="stats_lastmatches_matchhelper" matchnum="19" match_listbox="{match_listbox}" resulttrigger="{resulttrigger=PlayerStatsResult}" />
  573.         <instance name="stats_lastmatches_matchhelper" matchnum="20" match_listbox="{match_listbox}" resulttrigger="{resulttrigger=PlayerStatsResult}" />
  574.        
  575.         <panel y="1.0h" width="-2.0h" height="-2.5h" align="center" noclick="true" visible="{visible=false}" group="PlayerStatsPanels" name="{panel_name}">
  576.    
  577.             <!-- Right -->
  578.             <panel align="right" width="23.6h" float="bottom" padding="0.2h">
  579.                 <instance name="header_bar" height="2.8h" lbl="player_stats_last_20_matches" color="{barcolor=1 1 1 1}" lbl_font="dyn_11" show_close="1" onclick="Set('_mainmenu_currentpanel', 'player_stats'); CallEvent('MainMenuPanelSwitcher');" />
  580.  
  581.                 <panel width="100%" align="center" height="2.4h" noclick="1">
  582.                     <instance name="header_bar" color="{darkbarcolor=.7 .7 .7 1}" height="2.4h" show_close="0"/>
  583.                     <panel x="0.5h" float="right" noclick="true">
  584.                         <label width="8.0h" height="100%" textvalign="center" font="dyn_11" color="white" shadow="true" noclick="true" content="general_date" />
  585.                         <label height="8.0h" textvalign="center" font="dyn_11" color="white" shadow="true" noclick="true" content="player_stats_matchid" />
  586.                     </panel>
  587.                 </panel>
  588.                
  589.                 <panel height="-5.6h" noclick="true">
  590.                     <frame color="invisible" bordercolor="{framecolor=#455166}" borderthickness="1" noclick="true" />
  591.                    
  592.                     <listbox
  593.                         name="{match_listbox}"
  594.                         height="-1.0h" width="-0.6h"
  595.                         align="center" valign="center"
  596.                         color="invisible"
  597.                         font="dyn_10"
  598.                         itemwidth="100%"
  599.                         itemheight="2.9h"
  600.                         select="false"
  601.                         clearselection="true"
  602.                         hoverselect="false"
  603.                         hoverhighlight="true"
  604.                         highlight="under"
  605.                         highlightcolor="{itemhighlight=#46adff42}"
  606.                         highlightbordercolor="invisible"
  607.                         selectedcolor="#346dff52"
  608.                         selectedbordercolor="invisible"
  609.                         backgroundimage="/ui/fe2/elements/comm_item_bg.tga"
  610.                         backgroundimagecolor="{itembgcolor=#1d2f3b}"
  611.                         colortransition="true"
  612.                         colortransitiontime="250"
  613.                         exteriorscrollbars="false"
  614.                         scrollbarplaceholder="true"
  615.                         scrollbarsize="2.0h"
  616.                         scrolltexture="/ui/info/combobox.tga"
  617.                         handleheight="2.0h"
  618.                         watch="{resulttrigger=PlayerStatsResult}"
  619.                         ontrigger="
  620.                             ClearItems();
  621.                             Trigger('{resulttrigger=PlayerStatsResult}MList');
  622.                         "
  623.                     />
  624.                    
  625.                     <!-- No History -->
  626.                     <panel visible="true" watch="{resulttrigger=PlayerStatsResult}" ontrigger="SetVisible(StringEmpty(_playerstats_matchlist_match0_id));">
  627.                         <frame color="0 0 0 .8" bordercolor="{framecolor=#455166}" borderthickness="1" noclick="true" />
  628.                         <label height="100%" width="-8.0h" align="center" textalign="center" textvalign="center" wrap="true" font="dyn_10" color="white" content="player_stats_nohistory"/>
  629.                     </panel>
  630.                
  631.                 </panel>
  632.            
  633.             </panel>
  634.    
  635.             <!-- Left -->
  636.             <panel align="left" width="-24.1h" noclick="true" reverse="true">
  637.        
  638.                 <panel width="100%" height="2.5h" noclick="true">                      
  639.                     <instance name="header_bar" height="2.8h" lbl="player_stats_header" color="{barcolor=1 1 1 1}" lbl_font="dyn_11" show_close="0" />
  640.                 </panel>
  641.                    
  642.                 <!-- Player Overview (Left) -->
  643.                 <panel width="-52.0h" height="-3.0h" align="left" valign="bottom" noclick="true">
  644.                            
  645.                     <!-- User Details -->                                                  
  646.                     <panel width="-4.0h" height="9.0h" y="12.5h" align="center">
  647.                         <frame texture="/ui/frames/rounded_bg_white.tga" borderthickness="0.6h" color="#1f1f1f" noclick="1"/>
  648.                         <frame texture="/ui/frames/roundframe.tga" borderthickness="0.6h" color="#666666" noclick="1" />
  649.                        
  650.                         <panel width="110%" height="12.5h" y="-8.5h" align="center" color="0 0 0 1">
  651.                             <frame color="invisible" bordercolor=".4 .4 .4 1" borderthickness="1" noclick="1" />
  652.                            
  653.                             <panel width="-1h" height="-1h" x=".5h" y=".5h">
  654.                                 <panel width="9.5h" height="9.5h">
  655.                                     <avatar
  656.                                         texture="/ui/common/ability_coverup.tga"
  657.                                         watch="{resulttrigger=PlayerStatsResult}"
  658.                                         ontrigger=
  659.                                         "
  660.                                             SetTexture('/ui/common/ability_coverup.tga');
  661.                                             If(StringEmpty(GetAccountIconTexturePathFromUpgrades(param88, param4)),
  662.                                                 SetAvatar('http://www.heroesofnewerth.com/getAvatar.php?id=' # param4),
  663.                                                 SetTexture(GetAccountIconTexturePathFromUpgrades(param88, param4))
  664.                                             );
  665.                                         "
  666.                                     />
  667.                                 </panel>
  668.                                
  669.                                 <panel align="right" width="-10.5h" valign="center" float="bottom">
  670.                                     <panel width="100%" height="2.6h">
  671.                                         <label
  672.                                             height="2.6h"
  673.                                             font="dyn_16"
  674.                                             color="#ffab01"
  675.                                             textvalign="center"
  676.                                             watch="{resulttrigger=PlayerStatsResult}"
  677.                                             ontrigger=
  678.                                             "
  679.                                                 If(StringEmpty(GetChatNameColorStringFromUpgrades(param88)),
  680.                                                     SetColor('#FFAB01'),
  681.                                                     SetColor(GetChatNameColorStringFromUpgrades(param88))
  682.                                                 );
  683.                                                 SetGlow(GetChatNameGlowFromUpgrades(param88));
  684.                                                 SetText(param0);
  685.                                             "
  686.                                             contents="-"
  687.                                         />
  688.                                        
  689.                                         <image
  690.                                             width="2.6h"
  691.                                             height="2.6h"
  692.                                             align="right"
  693.                                             valign="center"
  694.                                             watch="{resulttrigger=PlayerStatsResult}"
  695.                                             ontrigger=
  696.                                             "
  697.                                                 If(StringEmpty(GetChatSymbolTexturePathFromUpgrades(param88)),
  698.                                                     If(StringEmpty(GetChatNameColorTexturePathFromUpgrades(param88)),
  699.                                                         SetVisible(false),
  700.                                                         Split(SetVisible(true), SetTexture(GetChatNameColorTexturePathFromUpgrades(param88)))
  701.                                                     ),
  702.                                                     Split(SetVisible(true), SetTexture(GetChatSymbolTexturePathFromUpgrades(param88)))
  703.                                                 );
  704.                                             "
  705.                                             onmouseover="
  706.                                                 Trigger(
  707.                                                     'StoreImagePreviewInit',
  708.                                                     GetWidth(),
  709.                                                     GetHeight(),
  710.                                                     GetAbsoluteX(),
  711.                                                     GetAbsoluteY(),
  712.                                                     false,
  713.                                                     GetTexture()
  714.                                                 );
  715.                                                 Trigger('StoreImagePreviewVis', true, '250%');
  716.                                             "
  717.                                             onmouseout="
  718.                                                 DoEvent(1);
  719.                                                
  720.                                             "
  721.                                             onhide="
  722.                                                 DoEvent(1);
  723.                                             "
  724.                                             onevent1="
  725.                                                 Trigger('StoreImagePreviewVis', false, '100%');
  726.                                             "
  727.                                         />
  728.                                     </panel>
  729.                                    
  730.                                     <panel height="1.8h" align="center">
  731.                                         <label width="100%" height="100%" textalign="left" textvalign="top" font="dyn_9" color="1 1 1 1" shadow="1" noclick="1" watch="{resulttrigger=PlayerStatsResult}" ontrigger="SetText(param1);" />
  732.                                         <label width="100%" height="100%" textalign="right" textvalign="top" font="dyn_9" color="1 1 1 1" shadow="1" noclick="1" watch="{resulttrigger=PlayerStatsResult}" ontrigger="SetText(param2);" />
  733.                                     </panel>
  734.                                    
  735.                                     <panel height="5h" width="100%" onmouseover="##ShowWidget('accountstats_tip');##" onmouseout="##HideWidget('accountstats_tip');##" noclick="1"  >
  736.                                    
  737.                                         <frame texture="/ui/info/backdrop.tga" borderthickness="1.0h" color=".6 .6 .6 1" rendermode="grayscale" noclick="1" />
  738.                                         <frame color=".05 .07 .1 .5" bordercolor="#666666" borderthickness="1" noclick="1" />
  739.                                         <if condition="!cl_GarenaEnable">
  740.                                        
  741.                                             <!-- F2P -->   
  742.                                             <label y="0.5h" x="6.0h" width="-4.0h" height="1.8h" align="center" textalign="left" textvalign="top" font="dyn_10" color="1 1 1 1" shadow="1" noclick="1" content="general_basic"
  743.                                                  watch="{resulttrigger=PlayerStatsResult}"
  744.                                                  ontrigger="
  745.                                                  If(param119 ge accountStanding_verifiedThreshold or param119 == 0,
  746.                                                     SetText(Translate('general_verified')),
  747.                                                     SetText(Translate('general_basic'))
  748.                                                 );"
  749.                                             />
  750.                                            
  751.                                             <image color="1 1 1 1" y="0.1h" x="5h" width="2.4h" height="2.4h" valign="top" align="left" visible="1" texture="/ui/icons/basic.tga" noclick="0"
  752.                                                  watch="{resulttrigger=PlayerStatsResult}"
  753.                                                  ontrigger="
  754.                                                  If(param119 ge accountStanding_verifiedThreshold or param119 == 0,
  755.                                                     Split(SetOnMouseover('ShowWidget(\'general_verified\');'), SetTexture('/ui/icons/verified.tga')),
  756.                                                     Split(SetOnMouseover('ShowWidget(\'general_basic\');'), SetTexture('/ui/icons/basic.tga'))
  757.                                                 ); "
  758.                                                 onmouseout="HideWidget('general_verified'); HideWidget('general_basic');" onhide="HideWidget('general_verified'); HideWidget('general_basic');"                                        
  759.                                             />
  760.                                         </if>
  761.                                    
  762.                                         <panel height="-1h" width="100@" align="right" color="0 0 0 .5" x="-.5h" valign="center">
  763.                                             <frame color="invisible" bordercolor="#666666" borderthickness="1" noclick="1" />
  764.                                             <label height="100%" width="100%" textalign="center" textvalign="center" font="dyn_14" color="1 1 1 1" shadow="1" noclick="1" watch="{resulttrigger=PlayerStatsResult}" ontrigger="SetText(param113);" />
  765.                                         </panel>
  766.                                    
  767.                                         <panel valign="bottom" height="2h" y="-.5h" x=".5h" width="-6.5h" align="left" color="invisible" noclick="1">
  768.                                             <image texture="/ui/legion/behind_bar.tga" color="#170045" noclick="1" />
  769.                                            
  770.                                             <panel width="0" watch="{resulttrigger=PlayerStatsResult}" ontrigger="If(param114 gt 0, SetWidth(FtoP(GetAccountPercentNextLevel(param114))), SetWidth(0));"  noclick="1">
  771.                                                 <image texture="/ui/legion/behind_bar.tga" color="#ac00f5" noclick="1" />
  772.                                                 <image align="right" texture="/ui/legion/behind_bar.tga" color="1 1 1 .5" noclick="1"/>
  773.                                             </panel>
  774.                                            
  775.                                             <image width="-0.6h" align="center" texture="/ui/elements/bar_highlight.tga" noclick="1"/>                         
  776.                                             <frame color="invisible" bordercolor="#666666" borderthickness="1" noclick="1" />
  777.                                         </panel>
  778.                                        
  779.                                         <!-- Public Games Blocker
  780.                                         <panel visible="{pubgameblock=false}">
  781.                                             <frame color="0 0 0 .9" bordercolor="{framecolor=#455166}" borderthickness="1" noclick="true" />
  782.                                             <label height="100%" width="-2.0h" align="center" textalign="center" textvalign="center" wrap="true" font="dyn_10" color="white" content="player_stats_nostreakstats"/>
  783.                                         </panel>
  784.                                          -->
  785.                                     </panel>                                       
  786.                                    
  787.                                 </panel>
  788.                             </panel>
  789.                            
  790.                             <!-- Created / Login Dates -->
  791.                             <panel y="-0.5h" width="-1.0h" height="1.5h" align="center" valign="bottom" grow="true">
  792.                                 <label color="white" font="dyn_9" align="left" watch="{resulttrigger=PlayerStatsResult}" ontrigger="SetText(Translate('player_stats_account_age', 'age', param75));" />
  793.                                 <label color="white" font="dyn_9" align="right" textalign="right" watch="{resulttrigger=PlayerStatsResult}" ontrigger="SetText(Translate('player_stats_last_match', 'last', param51));" />
  794.                             </panel>
  795.        
  796.  
  797.                         </panel>
  798.                    
  799.                         <panel width="100%" align="center" float="bottom" grow="true">
  800.                             <panel height="4.5h" />
  801.                             <panel width="100%" height="2h" float="right">
  802.                                 <label width="33.3%" color="#ffab01" shadow="1" font="dyn_11" textvalign="top" textalign="center" noclick="1">player_stats_matches</label>
  803.                                 <label width="33.3%" color="#ffab01" shadow="1" font="dyn_11" textvalign="top" textalign="center" noclick="1">player_stats_disconnects</label>
  804.                                 <label width="33.3%" color="#ffab01" shadow="1" font="dyn_11" textvalign="top" textalign="center" noclick="1">player_stats_leave_percent</label>
  805.                             </panel>                           
  806.                             <panel width="100%" height="2h" float="right">
  807.                                
  808.                                 <!-- Matches Played -->
  809.                                 <label width="33.3%" color="white" shadow="1" font="dyn_11" textvalign="center" textalign="center" onmouseover="ShowWidget('stats_tip_matches_played');" onmouseout="HideWidget('stats_tip_matches_played');" watch="{resulttrigger=PlayerStatsResult}" ontrigger="
  810.                                     SetText(Round(param5+param89+param90+param123) # ' (' # param5 # ')');
  811.                                 " />                               
  812.                                
  813.                                 <!-- Discos -->
  814.                                 <label width="33.3%" color="white" shadow="1" font="dyn_11" textvalign="center" textalign="center" onmouseover="ShowWidget('stats_tip_disconnects');" onmouseout="HideWidget('stats_tip_disconnects');" watch="{resulttrigger=PlayerStatsResult}" ontrigger="
  815.                                     SetText(Round(param11+param91+param92+param124) # ' (' # param11 # ')');
  816.                                 " />
  817.                                
  818.                                 <!-- Leave % -->
  819.                                 <label width="33.3%" color="white" shadow="1" font="dyn_11" textvalign="center" textalign="center" watch="{resulttrigger=PlayerStatsResult}" ontrigger="
  820.                                     If(
  821.                                         param11 gt 0 or param91 gt 0 or param92 gt 0 or param124 gt 0,
  822.                                         SetText(FtoA(FtoP((param11+param91+param92+param124) / (param5+param89+param90+param123)), 1) # '%'),
  823.                                         SetText('0%')
  824.                                     );
  825.                                 " />
  826.                                
  827.                             </panel>
  828.                         </panel>
  829.                        
  830.                     </panel>
  831.  
  832.                     <!-- Acct Overview Stats -->
  833.                     <panel y="-12.4h" grow="true" width="100%" valign="bottom" noclick="1" float="bottom" padding="0.7h">
  834.                         <!-- MMR / PSR -->
  835.                         <panel height="1.8h" noclick="true">
  836.                             <label width="47%" height="100%" align="left" textalign="right" textvalign="center" font="dyn_11" color="{labeltextcolor=#3abde7}" shadow="1" content="" onshow="
  837.                                 If(
  838.                                     StringEquals('{panel_name}', 'stats_panel_ranked'),
  839.                                     SetText(Translate('player_stats_mmr'))
  840.                                 );
  841.                                 If(
  842.                                     StringEquals('{panel_name}', 'stats_panel_casual'),
  843.                                     SetText(Translate('player_stats_mmr'))
  844.                                 );
  845.                                 If(
  846.                                     StringEquals('{panel_name}', 'stats_panel_public'),
  847.                                     SetText(Translate('player_stats_psr'))
  848.                                 );
  849.                             " noclick="1" />
  850.                             <label width="100%" height="100%" textalign="center" textvalign="center" font="dyn_11" color="{labeltextcolor=#3abde7}" shadow="1" content=":" noclick="1" />
  851.                             <label width="47%" height="100%" align="right" textalign="left" textvalign="center" font="dyn_11" color="white" shadow="1" noclick="1" content="-" watch="{resulttrigger=PlayerStatsResult}"
  852.                             ontrigger="
  853.                                 SetText(
  854.                                     If(
  855.                                         StringEquals('{panel_name}', 'stats_panel_public'),
  856.                                         ClampRank(param13, 0),
  857.                                         ClampRank(param17, 2)
  858.                                     )
  859.                                 );
  860.                             "
  861.                             />
  862.                         </panel>
  863.                        
  864.                         <!-- Wins -->
  865.                         <panel height="1.8h" noclick="true">
  866.                             <label width="47%" height="100%" align="left" textalign="right" textvalign="center" font="dyn_11" color="{labeltextcolor=#3abde7}" shadow="1" content="player_stats_wins" noclick="1" />
  867.                             <label width="100%" height="100%" textalign="center" textvalign="center" font="dyn_11" color="{labeltextcolor=#3abde7}" shadow="1" content=":" noclick="1" />
  868.                             <label width="47%" height="100%" align="right" textalign="left" textvalign="center" font="dyn_11" color="white" shadow="1" noclick="1" watch="{resulttrigger=PlayerStatsResult}" ontrigger="SetText(param6);" />
  869.                         </panel>
  870.                                                
  871.                         <!-- Losses -->
  872.                         <panel height="1.8h" noclick="true">
  873.                             <label width="47%" height="100%" align="left" textalign="right" textvalign="center" font="dyn_11" color="{labeltextcolor=#3abde7}" shadow="1" content="player_stats_losses" noclick="1" />
  874.                             <label width="100%" height="100%" textalign="center" textvalign="center" font="dyn_11" color="{labeltextcolor=#3abde7}" shadow="1" content=":" noclick="1" />
  875.                             <label width="47%" height="100%" align="right" textalign="left" textvalign="center" font="dyn_11" color="white" shadow="1" noclick="1" watch="{resulttrigger=PlayerStatsResult}" ontrigger="SetText(param7);" />
  876.                         </panel>
  877.                        
  878.                         <!-- Win % -->
  879.                         <panel height="1.8h" noclick="true">
  880.                             <label width="47%" height="100%" align="left" textalign="right" textvalign="center" font="dyn_11" color="{labeltextcolor=#3abde7}" shadow="1" content="player_stats_winning_percentage" noclick="1" />
  881.                             <label width="100%" height="100%" textalign="center" textvalign="center" font="dyn_11" color="{labeltextcolor=#3abde7}" shadow="1" content=":" noclick="1" />
  882.                             <label width="47%" height="100%" align="right" textalign="left" textvalign="center" font="dyn_11" color="white" shadow="1" noclick="1" watch="{resulttrigger=PlayerStatsResult}" ontrigger="SetText(Translate('player_stats_win_percent', 'percent', FtoP(param6 / (param6 + param7), 0)));" />
  883.                         </panel>
  884.  
  885.                     </panel>
  886.                    
  887.                     <!-- Most Played Heroes -->
  888.                     <panel y="0" width="-2.0h" height="11.0h" align="center" valign="bottom" noclick="bottom">
  889.                         <frame texture="/ui/frames/rounded_bg_white.tga" borderthickness="0.6h" color="{panelbgcolor=#141e27}" noclick="1"/>
  890.                         <frame texture="/ui/frames/roundframe.tga" borderthickness="0.6h" color="{framecolor=#455166}" noclick="1" />
  891.                         <panel grow="true" width="100%" float="bottom" padding=".2h">
  892.                             <label y="0.2h" textalign="center" height="2.2h" textvalign="center" color="{labeltextcolor=#3abde7}" shadow="true" font="dyn_12">player_stats_mostplayed</label>
  893.                             <panel height="8h" width="100%" align="center" float="right">
  894.                                 <panel width="20%" float="bottom" padding=".5h">
  895.                                     <panel align="center" width="75@" height="75%">
  896.                                         <image texture="/ui/common/ability_coverup.tga" watch="{resulttrigger=PlayerStatsResult}" ontrigger="Set('_playerstats_hero_icon_temp', param54); CallEvent('playerstats_parse_icon'); SetTexture(_playerstats_hero_icon_output);" />
  897.                                         <frame color="invisible" bordercolor=".2 .2 .2 1" borderthickness="1" noclick="true" />
  898.                                     </panel>
  899.                                     <label textalign="center" align="center" font="dyn_11" color="white" watch="{resulttrigger=PlayerStatsResult}" ontrigger="SetText(Round(param59) # '%');">-</label>
  900.                                 </panel>
  901.                                 <panel width="20%" float="bottom" padding=".5h">
  902.                                     <panel align="center" width="75@" height="75%">
  903.                                         <image texture="/ui/common/ability_coverup.tga" watch="{resulttrigger=PlayerStatsResult}" ontrigger="Set('_playerstats_hero_icon_temp', param55); CallEvent('playerstats_parse_icon'); SetTexture(_playerstats_hero_icon_output);" />
  904.                                         <frame color="invisible" bordercolor=".2 .2 .2 1" borderthickness="1" noclick="true" />
  905.                                     </panel>
  906.                                     <label textalign="center" align="center" font="dyn_11" color="white" watch="{resulttrigger=PlayerStatsResult}" ontrigger="SetText(Round(param60) # '%');">-</label>
  907.                                 </panel>
  908.                                 <panel width="20%" float="bottom" padding=".5h">
  909.                                     <panel align="center" width="75@" height="75%">
  910.                                         <image texture="/ui/common/ability_coverup.tga" watch="{resulttrigger=PlayerStatsResult}" ontrigger="Set('_playerstats_hero_icon_temp', param56); CallEvent('playerstats_parse_icon'); SetTexture(_playerstats_hero_icon_output);" />
  911.                                         <frame color="invisible" bordercolor=".2 .2 .2 1" borderthickness="1" noclick="true" />
  912.                                     </panel>                                   
  913.                                     <label textalign="center" align="center" font="dyn_11" color="white" watch="{resulttrigger=PlayerStatsResult}" ontrigger="SetText(Round(param61) # '%');">-</label>
  914.                                 </panel>
  915.                                 <panel width="20%" float="bottom" padding=".5h">
  916.                                     <panel align="center" width="75@" height="75%">
  917.                                         <image texture="/ui/common/ability_coverup.tga" watch="{resulttrigger=PlayerStatsResult}" ontrigger="Set('_playerstats_hero_icon_temp', param57); CallEvent('playerstats_parse_icon'); SetTexture(_playerstats_hero_icon_output);" />
  918.                                         <frame color="invisible" bordercolor=".2 .2 .2 1" borderthickness="1" noclick="true" />
  919.                                     </panel>                                   
  920.                                     <label textalign="center" align="center" font="dyn_11" color="white" watch="{resulttrigger=PlayerStatsResult}" ontrigger="SetText(Round(param62) # '%');">-</label>
  921.                                 </panel>
  922.                                 <panel width="20%" float="bottom" padding=".5h">
  923.                                     <panel align="center" width="75@" height="75%">
  924.                                         <image texture="/ui/common/ability_coverup.tga" watch="{resulttrigger=PlayerStatsResult}" ontrigger="Set('_playerstats_hero_icon_temp', param58); CallEvent('playerstats_parse_icon'); SetTexture(_playerstats_hero_icon_output);" />
  925.                                         <frame color="invisible" bordercolor=".2 .2 .2 1" borderthickness="1" noclick="true" />
  926.                                     </panel>
  927.                                     <label textalign="center" align="center" font="dyn_11" color="white" watch="{resulttrigger=PlayerStatsResult}" ontrigger="SetText(Round(param63) # '%');">-</label>
  928.                                 </panel>
  929.                             </panel>
  930.                         </panel>
  931.                     </panel>
  932.                                
  933.                     <!-- Fetch -->
  934.                     <panel y="0" height="3.5h">
  935.                         <frame texture="/ui/info/backdrop.tga" borderthickness="2.0h" color="{fetchbgcolor=1 1 1 .5}" noclick="1" />
  936.                         <frame color=".05 .07 .1 .5" bordercolor="{framecolor=#455166}" borderthickness="1" noclick="1" />
  937.                        
  938.                         <panel x="0.5h" height="100%" float="right">
  939.                             <label fitx="true" fitxpadding="0.5h" height="100%" textvalign="center" font="dyn_10" color="white" shadow="true" content="player_stats_player_name"/>
  940.                             <panel height="2.5h" width="14.0h" valign="center" color="0 0 0 1" noclick="true">
  941.                                 <frame color="invisible" bordercolor="#7b8c9b" borderthickness="1" noclick="1" />                  
  942.                                 <textbox
  943.                                     name="{panel_name}_textbox"
  944.                                     y="0.4h"
  945.                                     width="-1.0h"
  946.                                     valign="center" align="center"
  947.                                     maxlength="40"
  948.                                     textalign="left" textvalign="center"
  949.                                     font="dyn_10"
  950.                                     textcolor="white"
  951.                                     shadow="false"
  952.                                     color="invisible"
  953.                                     onshow="SetFocus(true);"
  954.                                     onenter="Set('_player_stats_searchname', this); If(IsVisible(), CallEvent('player_stats_submit')); EraseInputLine();"
  955.                                     onesc="EraseInputLine();"
  956.                                     onchange="CreateString('ui_autocompleteTextBox', name); ChatAutoCompleteNick(this);"
  957.                                     onlosefocus="Set(stats_add_friend_auto, false);"
  958.                                 />
  959.                             </panel>                           
  960.                         </panel>
  961.                         <instance
  962.                             name="button2"
  963.                             x="-3.0h"
  964.                             height="2.5h" width="9.0h"
  965.                             align="right" valign="center"
  966.                             font="dyn_11"
  967.                             label="ccstats_button_fetch"
  968.                             onclick="Call(ui_autocompleteTextBox, 'Set(\'_player_stats_searchname\', this); CallEvent(\'player_stats_submit\'); EraseInputLine();');"
  969.                         />
  970.                         <instance name="tip_mark" tip_id="stat_tip_fetch" x="-0.5h" width="2.3h" height="2.3h" align="right" valign="center" />
  971.                        
  972.                         <panel onload="CreateBool('stats_add_friend_auto', false);" x="-15.6h" y="-2.9h" width="17.0h" height="15.0h" align="right" valign="top" visible="false" color="invisible" watch="ChatAutoCompleteClear" ontrigger="SetVisible(false);" watch2="ChatAutoCompleteAdd" ontrigger2="if(stats_add_friend_auto, SetVisible(true));">
  973.                             <instance name="autocomplete_list" listbox_name="autocomplete_stats_list_{stattype}" height="10.3h" align="right" valign="bottom" />
  974.                         </panel>
  975.                        
  976.                     </panel>
  977.                    
  978.                    
  979.                 </panel>
  980.                
  981.                 <!-- Player Stats (Mid) -->
  982.                 <panel x="-23.0h" width="28.5h" height="-3.0h" align="right" valign="bottom" noclick="true">
  983.                    
  984.                     <!-- Lifetime Stats -->
  985.                     <panel height="15.0h" noclick="true">
  986.                         <instance name="header_bar" lbl="player_stats_lifetime_header" color="{darkbarcolor=.7 .7 .7 1}" height="2.4h" />
  987.                        
  988.                         <!-- Op:  AE -->
  989.                         <instance
  990.                             name="button2"
  991.                             x="-0.3h" y="0.1h"
  992.                             width="6.0h" height="2.1h"
  993.                             align="right"
  994.                             font="dyn_9"
  995.                             label="purch_reset"
  996.                             borderthickness="0.6h"
  997.                             visible="false"
  998.                             onclick="Set('_mainmenu_currentpanel', 'form_reset_stats'); CallEvent('MainMenuPanelSwitcher');"
  999.                             watch="{resulttrigger=PlayerStatsResult}"
  1000.                             ontrigger="SetVisible(param4 == GetAccountID());"
  1001.                         />
  1002.                        
  1003.                         <panel height="-2.6h" valign="bottom" noclick="true">
  1004.                             <frame color="0 0 0 .8" bordercolor="{framecolor=#455166}" borderthickness="1" noclick="true" />                               
  1005.                            
  1006.                             <panel x="1.0h" y="0.6h" grow="true" width="100%" noclick="1" float="bottom" padding="0.2h">                                   
  1007.                                 <panel height="2.2h" color="invisible" noclick="1">
  1008.                                     <label width="45%" height="100%" align="left" textalign="right" textvalign="center" font="dyn_11" color="{labeltextcolor=#3abde7}" shadow="1" content="player_stats_kills" noclick="1" />
  1009.                                     <label x="-2%" width="100%" height="100%" textalign="center" textvalign="center" font="dyn_11" color="{labeltextcolor=#3abde7}" shadow="1" content=":" noclick="1" />
  1010.                                     <label width="49%" height="100%" align="right" textalign="left" textvalign="center" font="dyn_11" color="white" shadow="1" noclick="1" content="-" watch="{resulttrigger=PlayerStatsResult}" ontrigger="SetText(param20);" />
  1011.                                 </panel>                                   
  1012.                                 <panel height="2.2h" color="invisible" noclick="1">
  1013.                                     <label width="45%" height="100%" align="left" textalign="right" textvalign="center" font="dyn_11" color="{labeltextcolor=#3abde7}" shadow="1" content="player_stats_deaths" noclick="1" />
  1014.                                     <label x="-2%" width="100%" height="100%" textalign="center" textvalign="center" font="dyn_11" color="{labeltextcolor=#3abde7}" shadow="1" content=":" noclick="1" />
  1015.                                     <label width="49%" height="100%" align="right" textalign="left" textvalign="center" font="dyn_11" color="white" shadow="1" noclick="1" content="-" watch="{resulttrigger=PlayerStatsResult}" ontrigger="SetText(param25);" />
  1016.                                 </panel>                                   
  1017.                                 <panel height="2.2h" color="invisible" noclick="1">
  1018.                                     <label width="45%" height="100%" align="left" textalign="right" textvalign="center" font="dyn_11" color="{labeltextcolor=#3abde7}" shadow="1" content="player_stats_assists" noclick="1" />
  1019.                                     <label x="-2%" width="100%" height="100%" textalign="center" textvalign="center" font="dyn_11" color="{labeltextcolor=#3abde7}" shadow="1" content=":" noclick="1" />
  1020.                                     <label width="49%" height="100%" align="right" textalign="left" textvalign="center" font="dyn_11" color="white" shadow="1" noclick="1" content="-" watch="{resulttrigger=PlayerStatsResult}" ontrigger="SetText(param24);" />
  1021.                                 </panel>                                   
  1022.                                 <panel height="2.2h" color="invisible" noclick="1">
  1023.                                     <label width="45%" height="100%" align="left" textalign="right" textvalign="center" font="dyn_11" color="{labeltextcolor=#3abde7}" shadow="1" content="player_stats_kd_ratio" noclick="1" />
  1024.                                     <label x="-2%" width="100%" height="100%" textalign="center" textvalign="center" font="dyn_11" color="{labeltextcolor=#3abde7}" shadow="1" content=":" noclick="1" />
  1025.                                     <label width="49%" height="100%" align="right" textalign="left" textvalign="center" font="dyn_11" color="white" shadow="1" noclick="1" content="-" watch="{resulttrigger=PlayerStatsResult}" ontrigger="if(param25 gt 0, SetText(FtoA(param20 / param25, 2) # ':1'), If(param20 gt 0, SetText(20 # ':0'), SetText('0:0')));" />
  1026.                                 </panel>
  1027.                                 <panel height="2.2h" color="invisible" noclick="1">
  1028.                                     <label width="45%" height="100%" align="left" textalign="right" textvalign="center" font="dyn_11" color="{labeltextcolor=#3abde7}" shadow="1" content="player_stats_kad_ratio" noclick="1" />
  1029.                                     <label x="-2%" width="100%" height="100%" textalign="center" textvalign="center" font="dyn_11" color="{labeltextcolor=#3abde7}" shadow="1" content=":" noclick="1" />
  1030.                                     <label width="49%" height="100%" align="right" textalign="left" textvalign="center" font="dyn_11" color="white" shadow="1" noclick="1" content="-" watch="{resulttrigger=PlayerStatsResult}" ontrigger="if(param25 gt 0, SetText(FtoA((param20 + param24) / param25, 2) # ':1'), If((param20 + param24) gt 0, SetText(20 # ':0'), SetText('0:0')));" />
  1031.                                 </panel>
  1032.                             </panel>                               
  1033.                            
  1034.                         </panel>
  1035.                        
  1036.                     </panel>
  1037.                    
  1038.                     <panel height="-15.5h" valign="bottom" noclick="true">
  1039.                         <instance name="header_bar" lbl="player_stats_averages_header" color="{darkbarcolor=.7 .7 .7 1}" height="2.4h" />
  1040.                        
  1041.                         <!-- Op:  AE -->
  1042.                         <instance
  1043.                             name="button2"
  1044.                             x="-0.3h" y="0.1h"
  1045.                             width="6.0h" height="2.1h"
  1046.                             align="right"
  1047.                             font="dyn_9"
  1048.                             label="purch_reset"
  1049.                             borderthickness="0.6h"
  1050.                             visible="false"
  1051.                             onclick="Set('_mainmenu_currentpanel', 'form_reset_stats'); CallEvent('MainMenuPanelSwitcher');"
  1052.                             watch="{resulttrigger=PlayerStatsResult}"
  1053.                             ontrigger="SetVisible(param4 == GetAccountID());"
  1054.                         />
  1055.                        
  1056.                         <panel height="-2.6h" valign="bottom" noclick="true">
  1057.                             <frame color="0 0 0 .8" bordercolor="{framecolor=#455166}" borderthickness="1" noclick="true" />
  1058.                            
  1059.                             <panel x="1.0h" y="0.6h" grow="true" width="100%" noclick="1" float="bottom" padding="0.3h">
  1060.                                 <panel height="2.2h" noclick="true">
  1061.                                     <label width="45%" height="100%" align="left" textalign="right" textvalign="center" font="dyn_11" color="{labeltextcolor=#3abde7}" shadow="1" content="player_avg_game_length" noclick="1" />
  1062.                                     <label x="-2%" width="100%" height="100%" textalign="center" textvalign="center" font="dyn_11" color="{labeltextcolor=#3abde7}" shadow="1" content=":" noclick="1" />
  1063.                                     <label width="49%" height="100%" align="right" textalign="left" textvalign="center" font="dyn_11" color="white" shadow="1" noclick="1" content="-" watch="{resulttrigger=PlayerStatsResult}" ontrigger="if((param68) gt 0, SetText(FtoT((param68) * 1000, 1, 0, '0')), SetText('00:00'));" />
  1064.                                 </panel>
  1065.                                 <panel height="2.2h" noclick="true">
  1066.                                     <label width="44%" height="100%" align="left" textalign="right" textvalign="center" font="dyn_11" color="{labeltextcolor=#3abde7}" shadow="1" content="player_avg_kda" noclick="1" />
  1067.                                     <label x="-2%" width="100%" height="100%" textalign="center" textvalign="center" font="dyn_11" color="{labeltextcolor=#3abde7}" shadow="1" content=":" noclick="1" />
  1068.                                     <label width="49%" height="100%" align="right" textalign="left" textvalign="center" font="dyn_11" color="white" shadow="1" noclick="1" content="-" watch="{resulttrigger=PlayerStatsResult}" ontrigger="SetText(param67);" />
  1069.                                 </panel>
  1070.                                 <panel height="2.2h" noclick="true">
  1071.                                     <label width="44%" height="100%" align="left" textalign="right" textvalign="center" font="dyn_11" color="{labeltextcolor=#3abde7}" shadow="1" content="player_avg_creep_kills" noclick="1" />
  1072.                                     <label x="-2%" width="100%" height="100%" textalign="center" textvalign="center" font="dyn_11" color="{labeltextcolor=#3abde7}" shadow="1" content=":" noclick="1" />
  1073.                                     <label width="49%" height="100%" align="right" textalign="left" textvalign="center" font="dyn_11" color="white" shadow="1" noclick="1" content="-" watch="{resulttrigger=PlayerStatsResult}" ontrigger="SetText(FtoA(param71, 1));" />
  1074.                                 </panel>
  1075.                                 <panel height="2.2h" noclick="true">
  1076.                                     <label width="44%" height="100%" align="left" textalign="right" textvalign="center" font="dyn_11" color="{labeltextcolor=#3abde7}" shadow="1" content="player_avg_creep_denies" noclick="1" />
  1077.                                     <label x="-2%" width="100%" height="100%" textalign="center" textvalign="center" font="dyn_11" color="{labeltextcolor=#3abde7}" shadow="1" content=":" noclick="1" />
  1078.                                     <label width="49%" height="100%" align="right" textalign="left" textvalign="center" font="dyn_11" color="white" shadow="1" noclick="1" content="-" watch="{resulttrigger=PlayerStatsResult}" ontrigger="SetText(FtoA(param70, 1));" />
  1079.                                 </panel>
  1080.                                 <panel height="2.2h" noclick="true">
  1081.                                     <label width="44%" height="100%" align="left" textalign="right" textvalign="center" font="dyn_11" color="{labeltextcolor=#3abde7}" shadow="1" content="player_stats_experience_earned" noclick="1" />
  1082.                                     <label x="-2%" width="100%" height="100%" textalign="center" textvalign="center" font="dyn_11" color="{labeltextcolor=#3abde7}" shadow="1" content=":" noclick="1" />
  1083.                                     <label width="49%" height="100%" align="right" textalign="left" textvalign="center" font="dyn_11" color="white" shadow="1" noclick="1" content="-" watch="{resulttrigger=PlayerStatsResult}" ontrigger="SetText(FtoA(param44 / param5, 1, 3, ','));" />
  1084.                                 </panel>
  1085.                                 <panel height="2.2h" noclick="true">
  1086.                                     <label width="44%" height="100%" align="left" textalign="right" textvalign="center" font="dyn_11" color="{labeltextcolor=#3abde7}" shadow="1" content="player_stats_experience_per_minute" noclick="1" />
  1087.                                     <label x="-2%" width="100%" height="100%" textalign="center" textvalign="center" font="dyn_11" color="{labeltextcolor=#3abde7}" shadow="1" content=":" noclick="1" />
  1088.                                     <label width="49%" height="100%" align="right" textalign="left" textvalign="center" font="dyn_11" color="white" shadow="1" noclick="1" content="-" watch="{resulttrigger=PlayerStatsResult}" ontrigger="SetText(FtoA(param69, 1));" />
  1089.                                 </panel>                               
  1090.                                 <panel height="2.2h" noclick="true">
  1091.                                     <label width="44%" height="100%" align="left" textalign="right" textvalign="center" font="dyn_11" color="{labeltextcolor=#3abde7}" shadow="1" content="player_stats_gold_per_minute" noclick="1" />
  1092.                                     <label x="-2%" width="100%" height="100%" textalign="center" textvalign="center" font="dyn_11" color="{labeltextcolor=#3abde7}" shadow="1" content=":" noclick="1" />
  1093.                                     <label width="49%" height="100%" align="right" textalign="left" textvalign="center" font="dyn_11" color="white" shadow="1" noclick="1" content="-" watch="{resulttrigger=PlayerStatsResult}" ontrigger="if(param112 gt 0, SetText(FtoA(param42 / (param112/60), 1)), SetText('0'));" />
  1094.                                 </panel>                               
  1095.                                 <panel height="2.2h" noclick="true">
  1096.                                     <label width="44%" height="100%" align="left" textalign="right" textvalign="center" font="dyn_11" color="{labeltextcolor=#3abde7}" shadow="1" content="player_stats_wards" noclick="1" />
  1097.                                     <label x="-2%" width="100%" height="100%" textalign="center" textvalign="center" font="dyn_11" color="{labeltextcolor=#3abde7}" shadow="1" content=":" noclick="1" />
  1098.                                     <label width="49%" height="100%" align="right" textalign="left" textvalign="center" font="dyn_11" color="white" shadow="1" noclick="1" content="-" watch="{resulttrigger=PlayerStatsResult}" ontrigger="SetText(FtoA(param74, 1));" />
  1099.                                 </panel>
  1100.                                 <panel height="2.2h" noclick="true">
  1101.                                     <label width="44%" height="100%" align="left" textalign="right" textvalign="center" font="dyn_11" color="{labeltextcolor=#3abde7}" shadow="1" content="player_stats_apm" noclick="1" />
  1102.                                     <label x="-2%" width="100%" height="100%" textalign="center" textvalign="center" font="dyn_11" color="{labeltextcolor=#3abde7}" shadow="1" content=":" noclick="1" />
  1103.                                     <label width="49%" height="100%" align="right" textalign="left" textvalign="center" font="dyn_11" color="white" shadow="1" noclick="1" content="-" watch="{resulttrigger=PlayerStatsResult}" ontrigger="SetText(FtoA(param73, 1));" />
  1104.                                 </panel>
  1105.                                 <panel height="2.2h" noclick="true">
  1106.                                     <label width="44%" height="100%" align="left" textalign="right" textvalign="center" font="dyn_11" color="{labeltextcolor=#3abde7}" shadow="1" content="player_stats_neutral_creeps" noclick="1" />
  1107.                                     <label x="-2%" width="100%" height="100%" textalign="center" textvalign="center" font="dyn_11" color="{labeltextcolor=#3abde7}" shadow="1" content=":" noclick="1" />
  1108.                                     <label width="49%" height="100%" align="right" textalign="left" textvalign="center" font="dyn_11" color="white" shadow="1" noclick="1" content="-" watch="{resulttrigger=PlayerStatsResult}" ontrigger="SetText(FtoA(param72, 1));" />
  1109.                                 </panel>
  1110.                             </panel>
  1111.                            
  1112.                         </panel>
  1113.                        
  1114.                     </panel>
  1115.  
  1116.                 </panel>
  1117.                    
  1118.                 <!-- Moar Stats (Right) -->
  1119.                 <panel width="22.5h" height="-3.0h" align="right" valign="bottom" noclick="true">              
  1120.                    
  1121.                     <panel width="15.0h" height="12.4h" align="center" noclick="true">                 
  1122.                         <panel y="-1.5h" width="15.6h" height="13.5h" noclick="true" color="1 1 1 .3">
  1123.                             <image noclick="true"
  1124.                                 ontrigger9lua="UIManager.GetInterface('main'):HoNMainF('RegisterTexture', '/ui/icons/bronze_smackdown.tga', 'playerstats', self)" resourcecontext="playerstats" watch9="MainRegisterTextures"
  1125.                             />
  1126.                             <label fity="true" y="-3%" valign="center" textalign="center" font="dyn_12" color="1 1 1 1" noclick="true" content="0" watch="{resulttrigger=PlayerStatsResult}" ontrigger="SetText(param107);"  />
  1127.                         </panel>
  1128.                         <label y="-0.1h" fity="true" valign="bottom" textalign="center" font="dyn_14" color="#f8ebc6" noclick="true" content="player_stats_smackdowns" />
  1129.                     </panel>
  1130.                    
  1131.                     <panel height="-12.2h" valign="bottom" noclick="true" float="bottom">
  1132.                         <instance name="flavorkills" id="player_stats_humiliated" labeltextcolor="{labeltextcolor=#3abde7}" resulttrigger="{resulttrigger}" ontrigger="SetText(param108);"/>
  1133.                         <panel width="100%" height="5">
  1134.                             <panel width="80%" align="center" valign="center" height="1" color=".3 .3 .3 1" />
  1135.                         </panel>                       
  1136.                         <instance name="flavorkills" id="player_stats_serialkiller" labeltextcolor="{labeltextcolor=#3abde7}" resulttrigger="{resulttrigger=PlayerStatsResult}" ontrigger="SetText(param98);"/>
  1137.                         <instance name="flavorkills" id="player_stats_ultimatewarrior" labeltextcolor="{labeltextcolor=#3abde7}" resulttrigger="{resulttrigger=PlayerStatsResult}" ontrigger="SetText(param99);"/>
  1138.                         <instance name="flavorkills" id="player_stats_legndary" labeltextcolor="{labeltextcolor=#3abde7}" resulttrigger="{resulttrigger=PlayerStatsResult}" ontrigger="SetText(param100);"/>                       
  1139.                         <instance name="flavorkills" id="player_stats_onslaught" labeltextcolor="{labeltextcolor=#3abde7}" resulttrigger="{resulttrigger=PlayerStatsResult}" ontrigger="SetText(param101);"/>                      
  1140.                         <instance name="flavorkills" id="player_stats_savagesick" labeltextcolor="{labeltextcolor=#3abde7}" resulttrigger="{resulttrigger=PlayerStatsResult}" ontrigger="SetText(param102);"/>
  1141.                         <instance name="flavorkills" id="player_stats_dominating" labeltextcolor="{labeltextcolor=#3abde7}" resulttrigger="{resulttrigger=PlayerStatsResult}" ontrigger="SetText(param103);"/>
  1142.                         <instance name="flavorkills" id="player_stats_champion" labeltextcolor="{labeltextcolor=#3abde7}" resulttrigger="{resulttrigger=PlayerStatsResult}" ontrigger="SetText(param104);"/>
  1143.                         <instance name="flavorkills" id="player_stats_bloodbath" labeltextcolor="{labeltextcolor=#3abde7}" resulttrigger="{resulttrigger=PlayerStatsResult}" ontrigger="SetText(param105);"/>
  1144.                         <instance name="flavorkills" id="player_stats_immortal" labeltextcolor="{labeltextcolor=#3abde7}" resulttrigger="{resulttrigger=PlayerStatsResult}" ontrigger="SetText(param106);"/>                       
  1145.                         <panel width="100%" height="5">
  1146.                             <panel width="80%" align="center" valign="center" height="1" color=".3 .3 .3 1" />
  1147.                         </panel>
  1148.                         <instance name="flavorkills" id="player_stats_doubletap" labeltextcolor="{labeltextcolor=#3abde7}" resulttrigger="{resulttrigger=PlayerStatsResult}" ontrigger="SetText(param94);"/>
  1149.                         <instance name="flavorkills" id="player_stats_hattrick" labeltextcolor="{labeltextcolor=#3abde7}" resulttrigger="{resulttrigger=PlayerStatsResult}" ontrigger="SetText(param95);"/>
  1150.                         <instance name="flavorkills" id="player_stats_quadkill" labeltextcolor="{labeltextcolor=#3abde7}" resulttrigger="{resulttrigger=PlayerStatsResult}" ontrigger="SetText(param96);"/>
  1151.                         <instance name="flavorkills" id="player_stats_annihilated" labeltextcolor="{labeltextcolor=#3abde7}" resulttrigger="{resulttrigger=PlayerStatsResult}" ontrigger="SetText(param97);"/>
  1152.                         <panel width="100%" height="5">
  1153.                             <panel width="80%" align="center" valign="center" height="1" color=".3 .3 .3 1" />
  1154.                         </panel>
  1155.                         <instance name="flavorkills" id="player_stats_bloodlust" labeltextcolor="{labeltextcolor=#3abde7}" resulttrigger="{resulttrigger=PlayerStatsResult}" ontrigger="SetText(param93);"/>                       
  1156.                     </panel>
  1157.                    
  1158.                    
  1159.                     <!-- Public Games No Stats -->
  1160.                     <panel visible="{pubgameblock=false}">
  1161.                         <frame color="0 0 0 .8" bordercolor="{framecolor=#455166}" borderthickness="1" noclick="true" />
  1162.                         <label height="100%" width="-8.0h" align="center" textalign="center" textvalign="center" wrap="true" font="dyn_10" color="white" content="player_stats_nostreakstats"/>
  1163.                     </panel>
  1164.                    
  1165.                
  1166.                 </panel>
  1167.                    
  1168.             </panel>
  1169.                
  1170.         </panel>
  1171.  
  1172.         <!-- Request status -->
  1173.         <panel name="stats_status_box_{panel_name}" color="0 0 0 .7" blockinput="true" visible="false" watch="{statustrigger=PlayerStatsStatus}" ontrigger="SetVisible(param == 1 || param == 3);">
  1174.             <panel width="28.0h" height="10.0h" align="center" valign="center" noclick="0" cangrab="1">
  1175.             <frame color="0 0 0 .8" bordercolor="{framecolor=#455166}" borderthickness="1" noclick="1" />      
  1176.                 <panel y="-0.5h" width="-1.0h" height="-3.4h" align="center" valign="bottom" noclick="1">
  1177.                     <frame texture="/ui/frames/tooltip_bg.tga" color="{popupbgcolor=#2c4b6c}" noclick="1"/>
  1178.                     <frame color="invisible" bordercolor="{framecolor=#455166}" borderthickness="1" noclick="1" />             
  1179.                     <panel width="-1.0h" height="-1.0h" align="center" valign="center" color="invisible" noclick="1">
  1180.                        
  1181.                         <panel height="3.0h" align="center" float="right" padding=".5h" grow="true">
  1182.                             <animatedimage width="100@" height="100%" texture="/ui/elements/throb/throb.tga" noclick="true" loop="1" fps="30" onshow="StartAnim(1);" />
  1183.                             <label height="-1.0h" fitx="true" valign="center" textalign="left" font="dyn_10" textcolor="white" shadow="false" color="white">main_stats_retrieving_stats</label>                
  1184.                         </panel>
  1185.                        
  1186.                         <panel height="2.4h" valign="bottom" color="invisible" noclick="1" watch="{statustrigger=PlayerStatsStatus}" ontrigger="SetVisible(param == 1 || param == 3);">
  1187.                             <instance
  1188.                                 name="button2"
  1189.                                 width="10.0h" height="2.4h"
  1190.                                 align="left"
  1191.                                 valign="center"
  1192.                                 label="main_stats_cancel"
  1193.                                 onclick="Call('stats_status_box_{panel_name}', 'FadeOut(250);');"
  1194.                             />
  1195.  
  1196.                             <instance
  1197.                                 name="button2"
  1198.                                 width="10.0h" height="2.4h"
  1199.                                 align="right"
  1200.                                 valign="center"
  1201.                                 label="main_stats_retry"
  1202.                                 onclick="If(IsVisible(), CallEvent('player_stats_submit'));"
  1203.                                 enabled="false"
  1204.                             />
  1205.                         </panel>
  1206.  
  1207.                        
  1208.                     </panel>               
  1209.                 </panel>           
  1210.                 <instance
  1211.                     name="header_bar"
  1212.                     color="{barcolor=1 1 1 1}"
  1213.                     buttonsize="1.8h"
  1214.                     height="2.4h"
  1215.                     width="-2"
  1216.                     y="1"
  1217.                     align="center"
  1218.                     lbl=""
  1219.                     show_close="1"
  1220.                     onclick="Call('main_stats_info_box', 'FadeOut(250);');"
  1221.                 />         
  1222.             </panel>
  1223.         </panel>
  1224.  
  1225.         <!-- General Error -->
  1226.         <panel name="stats_error_{panel_name}" valign="bottom" height="-4.0h" color="0 0 0 .7" blockinput="true" visible="false" watch="{resulttrigger=PlayerStatsResult}" ontrigger="SetVisible(param86 == 1 or param86 == 2);">
  1227.             <panel width="38.0h" grow="true" align="center" valign="center" noclick="0">
  1228.             <frame color="0 0 0 .8" bordercolor="{framecolor=#455166}" borderthickness="1" noclick="1" />              
  1229.                 <panel grow="true" width="100%" float="bottom" padding="0.5h">                 
  1230.                     <instance
  1231.                         name="header_bar"
  1232.                         color="{barcolor=1 1 1 1}"
  1233.                         buttonsize="1.8h"
  1234.                         height="2.6h"
  1235.                         width="-2"
  1236.                         align="center"
  1237.                         lbl="general_error"
  1238.                         show_close="1"
  1239.                         onclick="Call('stats_error_{panel_name}', 'FadeOut(250);');"
  1240.                     />                     
  1241.                     <panel width="100%" grow="true">
  1242.                         <label fity="true" fitypadding="0.5h" width="-1.0h" align="center" textalign="left" font="dyn_10" wrap="true" textcolor="white" shadow="true" color="white" content="main_stats_error_message"/>                   
  1243.                     </panel>                       
  1244.                 </panel>
  1245.             </panel>           
  1246.         </panel>
  1247.    
  1248.     </template>
  1249.    
  1250.     <template name="stats_head_tab_button">
  1251.         <panel width="{width}" height="100%" noclick="true">
  1252.             <button
  1253.                 width="100%" height="100%"
  1254.                 group="{group}"
  1255.                 name="{button_name}"
  1256.                 color="invisible"
  1257.                 visible="{visible=true}"
  1258.                 watch="{watch}"
  1259.                 enabled="{enabled=true}"
  1260.                 ontrigger="{ontrigger}"
  1261.                 onmouseover="PlaySound('/shared/sounds/ui/button_over_01.wav'); If(!StringEmpty('{id}'), Call('{id}', 'SetAnim(0, \'start\');'));   If(!StringEmpty('{id}'), Call('{id}',  'SetEffect(0, \'/ui/effects/nebula/button_smoke.effect\');')); {onmouseover}"
  1262.                 onmouseout="{onmouseout}"
  1263.                 onclick="PlaySound('{sound=/shared/sounds/ui/button_click_01.wav}'); {onclick}"
  1264.                 onenter="PlaySound('{sound='/shared/sounds/ui/button_click_01.wav}'); {onenter}"
  1265.                 onshow="{onshow}"
  1266.                 hotkey="{hotkey}"
  1267.                 onhotkey="PlaySound('{sound=/shared/sounds/ui/button_click_01.wav'}'); {onhotkey}"
  1268.             >
  1269.                 <widgetstate statename="up">
  1270.                     <label font="{font=dyn_11}" shadow="true" color="white" textalign="center" textvalign="center">{label}</label>
  1271.                 </widgetstate>
  1272.                 <widgetstate statename="over">
  1273.                     <frame texture="/ui/frames/rounded_button_bg_white.tga" borderthickness="0.5h" rendermode="additive" color="0.2 0.2 0.2 1"/>
  1274.                     <label font="{font=dyn_11}" shadow="true" color="white" textalign="center" textvalign="center">{label}</label>
  1275.                 </widgetstate>
  1276.                 <widgetstate statename="down" x="1" y="1">
  1277.                     <label font="{font=dyn_11}" shadow="true" color="white" textalign="center" textvalign="center">{label}</label>
  1278.                 </widgetstate>
  1279.                 <widgetstate statename="disabled">
  1280.                     <frame texture="/ui/frames/rounded_button_bg_white.tga" borderthickness="0.5h" color=".3 .3 .3 .7"/>
  1281.                     <label font="{font=dyn_11}" shadow="true" color="white" textalign="center" textvalign="center">{label}</label>
  1282.                 </widgetstate>
  1283.             </button>
  1284.            
  1285.             <panel name="{type}_cover" group="stats_tab_cover" visible="{cover_isvis=false}">
  1286.                 <frame texture="/ui/info/button_down.tga" borderthickness="0.4h" color="0 0 0 0.6"/>
  1287.                 <label font="dyn_11" shadow="true" color="white" textalign="center" textvalign="center">{label}</label>
  1288.             </panel>
  1289.         </panel>
  1290.     </template>
  1291.    
  1292.     <template name="player_stats">
  1293.  
  1294.         <panel y="-110%" align="center" width="-11.0h" name="player_stats" visible="{visible=0}" noclick="true" valign="center">
  1295.        
  1296.             <panel x="0" y="-100%" height="203.6%" width="-15@"  align="center" texture="mainmenu/upper_frame_center.tga"/>
  1297.             <panel x="20h" y="-100%" height="203.6%" width="50@"  align="right" texture="mainmenu/upper_frame_right.tga"/>
  1298.             <panel x="-20h" y="-100%" height="203.6%" width="50@"  align="left" texture="mainmenu/upper_frame_left.tga"/>
  1299.            
  1300.             <instance name="player_stats_panel" panel_name="stats_panel_ranked" stattype="ranked" match_listbox="stats_matches_list_ranked" resulttrigger="PlayerStatsResultRanked" statustrigger="PlayerStatsStatusRanked" visible="true" />
  1301.             <instance name="player_stats_panel" panel_name="stats_panel_casual" stattype="casual" match_listbox="stats_matches_list_casual" resulttrigger="PlayerStatsResultCasual" statustrigger="PlayerStatsStatusCasual" labeltextcolor="#3AE77B" framecolor="#456645" barcolor=".4 1 .4 1" darkbarcolor=".7 1 .7 1" panelbgcolor="#162714" itemhighlight="#46FF6442" itembgcolor="#213B1D" fetchbgcolor=".6 1 .6 .5" levelgroupcolor=".5 1 .5 1" popupbgcolor="#2C6C2C" visible="false" />
  1302.             <instance name="player_stats_panel" panel_name="stats_panel_public" stattype="public" match_listbox="stats_matches_list_public" resulttrigger="PlayerStatsResult" statustrigger="PlayerStatsStatus" labeltextcolor="#c22e2e" framecolor="#664545" barcolor=".6 .4 .4 1" darkbarcolor=".5 .3 .3 1" panelbgcolor="#271414" itemhighlight="#46FF6442" itembgcolor="#3b1d1d" fetchbgcolor=".6 .4 .4 1" levelgroupcolor=".5 .3 .3 1 1" popupbgcolor="#6c2c2c" pubgameblock="true" visible="false" />
  1303.  
  1304.             <panel x="-25.0h" y="1.2h" height="2.5h" align="right" grow="true" float="right" padding="0.5h" onload="ShowOnly('ranked_cover'); cmd('setsave _playerstats_show_panel ' # 'stats_panel_ranked'); ShowOnly('stats_panel_ranked'); If(IsVisible(), CallEvent('player_stats_submit'));">
  1305.            
  1306.                 <panel width="1.0h" height="100%">
  1307.                     <panel x="-1" height="100%" width="1" align="center" color="0 0 0 .7" />
  1308.                     <panel x="0" height="100%" width="1" align="center" color="1 1 1 .3" />
  1309.                 </panel>
  1310.                
  1311.                 <instance name="stats_head_tab_button" width="19h" label="web_form_resetstats_rankedstats" type="ranked" cover_isvis="false" onclick="ShowOnly('ranked_cover'); cmd('setsave _playerstats_show_panel ' # 'stats_panel_ranked'); ShowOnly('stats_panel_ranked'); If(IsVisible(), CallEvent('player_stats_submit'));" onmouseover="" onmouseout="" />
  1312.                
  1313.                 <panel width="1.0h" height="100%">
  1314.                     <panel x="-1" height="100%" width="1" align="center" color="0 0 0 .7" />
  1315.                     <panel x="0" height="100%" width="1" align="center" color="1 1 1 .3" />
  1316.                 </panel>
  1317.                
  1318.                 <instance name="stats_head_tab_button" width="19h" label="web_form_resetstats_casualstats" type="casual" cover_isvis="false" onclick="ShowOnly('casual_cover'); cmd('setsave _playerstats_show_panel ' # 'stats_panel_casual'); ShowOnly('stats_panel_casual'); If(IsVisible(), CallEvent('player_stats_submit'));" onmouseover="" onmouseout="" />
  1319.                
  1320.                 <panel width="1.0h" height="100%">
  1321.                     <panel x="-1" height="100%" width="1" align="center" color="0 0 0 .7" />
  1322.                     <panel x="0" height="100%" width="1" align="center" color="1 1 1 .3" />
  1323.                 </panel>
  1324.                
  1325.                 <instance name="stats_head_tab_button" width="19h" label="web_form_resetstats_pubstats" type="public" cover_isvis="false" onclick="ShowOnly('public_cover'); cmd('setsave _playerstats_show_panel ' # 'stats_panel_public'); ShowOnly('stats_panel_public'); If(IsVisible(), CallEvent('player_stats_submit'));" onmouseover="" onmouseout="" />
  1326.  
  1327.             </panel>
  1328.  
  1329.            
  1330.         </panel>
  1331.  
  1332.     </template>
  1333.    
  1334. </package>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement