# HG changeset patch # User Periklis Ntanasis # Date 1370293848 -10800 # Node ID 72bfa6a3e8e200531d5e3debe0274da748fd97d7 # Parent e72f4f37a44482c6891d04cf85fa33e6dfbdecd3 added custom stats message diff -r e72f4f37a444 -r 72bfa6a3e8e2 QTfrontend/hedgewars.qrc --- a/QTfrontend/hedgewars.qrc Mon Jun 03 23:18:24 2013 +0300 +++ b/QTfrontend/hedgewars.qrc Tue Jun 04 00:10:48 2013 +0300 @@ -133,6 +133,7 @@ res/StatsMostSelfDamage.png res/StatsSelfKilled.png res/StatsSkipped.png + res/StatsCustomAchievement.png res/Start.png res/mapRandom.png res/mapMaze.png diff -r e72f4f37a444 -r 72bfa6a3e8e2 QTfrontend/ui/page/pagegamestats.cpp --- a/QTfrontend/ui/page/pagegamestats.cpp Mon Jun 03 23:18:24 2013 +0300 +++ b/QTfrontend/ui/page/pagegamestats.cpp Tue Jun 04 00:10:48 2013 +0300 @@ -300,6 +300,12 @@ AddStatText(message); break; } + case 'c' : + { + QString message = "

"+info+"

"; + AddStatText(message); + break; + } } } diff -r e72f4f37a444 -r 72bfa6a3e8e2 hedgewars/uIO.pas --- a/hedgewars/uIO.pas Mon Jun 03 23:18:24 2013 +0300 +++ b/hedgewars/uIO.pas Tue Jun 04 00:10:48 2013 +0300 @@ -212,7 +212,7 @@ end; procedure SendStat(sit: TStatInfoType; s: shortstring); -const stc: array [TStatInfoType] of char = ('r', 'D', 'k', 'K', 'H', 'T', 'P', 's', 'S', 'B'); +const stc: array [TStatInfoType] of char = ('r', 'D', 'k', 'K', 'H', 'T', 'P', 's', 'S', 'B', 'c'); var buf: shortstring; begin buf:= 'i' + stc[sit] + s; diff -r e72f4f37a444 -r 72bfa6a3e8e2 hedgewars/uTypes.pas --- a/hedgewars/uTypes.pas Mon Jun 03 23:18:24 2013 +0300 +++ b/hedgewars/uTypes.pas Tue Jun 04 00:10:48 2013 +0300 @@ -164,7 +164,7 @@ TStatInfoType = (siGameResult, siMaxStepDamage, siMaxStepKills, siKilledHHs, siClanHealth, siTeamStats, siPlayerKills, siMaxTeamDamage, - siMaxTeamKills, siMaxTurnSkips ); + siMaxTeamKills, siMaxTurnSkips, siCustomAchievement ); // Various "emote" animations a hedgehog can do TWave = (waveRollup, waveSad, waveWave, waveHurrah, waveLemonade, waveShrug, waveJuggle);