--- a/hedgewars/uChat.pas Sun Jul 19 03:10:00 2015 +0200
+++ b/hedgewars/uChat.pas Sun Jul 19 04:05:19 2015 +0200
@@ -68,14 +68,17 @@
const
- colors: array[#0..#6] of TSDL_Color = (
- (r:$FF; g:$FF; b:$FF; a:$FF), // unused, feel free to take it for anything
- (r:$FF; g:$FF; b:$FF; a:$FF), // chat message [White]
- (r:$FF; g:$00; b:$FF; a:$FF), // action message [Purple]
- (r:$90; g:$FF; b:$90; a:$FF), // join/leave message [Lime]
- (r:$FF; g:$FF; b:$A0; a:$FF), // team message [Light Yellow]
- (r:$FF; g:$00; b:$00; a:$FF), // error messages [Red]
- (r:$00; g:$FF; b:$FF; a:$FF) // input line [Light Blue]
+ colors: array[#0..#9] of TSDL_Color = (
+ (r:$FF; g:$FF; b:$FF; a:$FF), // #0 unused, feel free to take it for anything
+ (r:$FF; g:$FF; b:$FF; a:$FF), // #1 chat message [White]
+ (r:$FF; g:$00; b:$FF; a:$FF), // #2 action message [Purple]
+ (r:$90; g:$FF; b:$90; a:$FF), // #3 join/leave message [Lime]
+ (r:$FF; g:$FF; b:$A0; a:$FF), // #4 team message [Light Yellow]
+ (r:$FF; g:$00; b:$00; a:$FF), // #5 error messages [Red]
+ (r:$00; g:$FF; b:$FF; a:$FF), // #6 input line [Light Blue]
+ (r:$FF; g:$80; b:$80; a:$FF), // #7 team gone [Light Red]
+ (r:$FF; g:$D0; b:$80; a:$FF), // #8 team back [Light Orange]
+ (r:$DF; g:$DF; b:$DF; a:$FF) // #9 hog speech [Light Gray]
);
ChatCommandz: array [TChatCmd] of record
ChatCmd: string[31];
--- a/hedgewars/uGears.pas Sun Jul 19 03:10:00 2015 +0200
+++ b/hedgewars/uGears.pas Sun Jul 19 04:05:19 2015 +0200
@@ -981,7 +981,7 @@
Gear^.FrameTicks:= x
end;
//ParseCommand('/say [' + hh^.Name + '] '+text, true)
- AddChatString(#1+'[' + HH^.Name + '] '+text);
+ AddChatString(#9+'[' + HH^.Name + '] '+text);
end
end
else if (x >= 4) then
--- a/hedgewars/uScript.pas Sun Jul 19 03:10:00 2015 +0200
+++ b/hedgewars/uScript.pas Sun Jul 19 04:05:19 2015 +0200
@@ -1416,7 +1416,7 @@
vgear^.Text:= lua_tostring(L, 2);
if Gear^.Kind = gtHedgehog then
begin
- AddChatString(#1+'[' + gear^.Hedgehog^.Name + '] '+vgear^.text);
+ AddChatString(#9+'[' + gear^.Hedgehog^.Name + '] '+vgear^.text);
vgear^.Hedgehog:= gear^.Hedgehog
end
else vgear^.Frame:= gear^.uid;
--- a/hedgewars/uTeams.pas Sun Jul 19 03:10:00 2015 +0200
+++ b/hedgewars/uTeams.pas Sun Jul 19 04:05:19 2015 +0200
@@ -665,7 +665,7 @@
begin
if (not hasGone) and isGoneFlagPendingToBeSet then
begin
- AddChatString('** '+ TeamName + ' is gone'); // TODO: localize
+ AddChatString(#7 + '* '+ TeamName + ' is gone'); // TODO: localize
if not CurrentTeam^.ExtDriven then SendIPC(_S'f' + s);
hasGone:= true;
skippedTurns:= 0;
@@ -704,7 +704,7 @@
with TeamsArray[t]^ do
if hasGone then
begin
- AddChatString('** '+ TeamName + ' is back');
+ AddChatString(#8 + '* '+ TeamName + ' is back');
if not CurrentTeam^.ExtDriven then SendIPC(_S'g' + s);
hasGone:= false;
@@ -741,7 +741,7 @@
inc(t)
end;
-AddChatString('** Good-bye!');
+AddChatString(#7 + '* Good-bye!');
RecountAllTeamsHealth();
end;