Use light gray color for volume change, just like for the auto camera msgs
authorWuzzy <Wuzzy2@mail.ru>
Wed, 08 Aug 2018 14:10:32 +0200
changeset 13646 007813b81f1b
parent 13645 cb0191394133
child 13647 3d14950641a4
Use light gray color for volume change, just like for the auto camera msgs The idea is that these are "local" messages for local changes
hedgewars/uCommandHandlers.pas
hedgewars/uConsts.pas
hedgewars/uGame.pas
--- a/hedgewars/uCommandHandlers.pas	Wed Aug 08 13:34:39 2018 +0200
+++ b/hedgewars/uCommandHandlers.pas	Wed Aug 08 14:10:32 2018 +0200
@@ -610,12 +610,12 @@
 if autoCameraOn then
     begin
     FollowGear:= nil;
-    AddCaption(trmsg[sidAutoCameraOff], $CCCCCC, capgrpVolume);
+    AddCaption(trmsg[sidAutoCameraOff], cLightGrayColor, capgrpVolume);
     autoCameraOn:= false
     end
 else
     begin
-    AddCaption(trmsg[sidAutoCameraOn], $CCCCCC, capgrpVolume);
+    AddCaption(trmsg[sidAutoCameraOn], cLightGrayColor, capgrpVolume);
     bShowFinger:= true;
     if not CurrentHedgehog^.Unplaced then
         FollowGear:= CurrentHedgehog^.Gear;
--- a/hedgewars/uConsts.pas	Wed Aug 08 13:34:39 2018 +0200
+++ b/hedgewars/uConsts.pas	Wed Aug 08 14:10:32 2018 +0200
@@ -74,6 +74,7 @@
 
     cWhiteColor           : Longword = $FFFFFFFF; // white
     cYellowColor          : Longword = $FFFFFF00; // yellow
+    cLightGrayColor       : Longword = $FFCCCCCC; // light gray
     cNearBlackColor       : Longword = $FF000010; // nearly black
 
 {$WARNINGS OFF}
--- a/hedgewars/uGame.pas	Wed Aug 08 13:34:39 2018 +0200
+++ b/hedgewars/uGame.pas	Wed Aug 08 14:10:32 2018 +0200
@@ -87,22 +87,22 @@
         j:= Volume;
         i:= ChangeVolume(cVolumeDelta);
         if (not cIsSoundEnabled) or (isAudioMuted and (j<>i)) then
-            AddCaption(trmsg[sidMute], cWhiteColor, capgrpVolume)
+            AddCaption(trmsg[sidMute], cLightGrayColor, capgrpVolume)
         else if not isAudioMuted then
             begin
             s:= ansistring(inttostr(i));
-            AddCaption(FormatA(trmsg[sidVolume], s), cWhiteColor, capgrpVolume)
+            AddCaption(FormatA(trmsg[sidVolume], s), cLightGrayColor, capgrpVolume)
             end
         end
     else if cMuteToggle then
         begin
         MuteAudio;
         if isAudioMuted then
-            AddCaption(trmsg[sidMute], cWhiteColor, capgrpVolume)
+            AddCaption(trmsg[sidMute], cLightGrayColor, capgrpVolume)
         else
             begin
             s:= ansistring(inttostr(GetVolumePercent()));
-            AddCaption(FormatA(trmsg[sidVolume], s), cWhiteColor, capgrpVolume);
+            AddCaption(FormatA(trmsg[sidVolume], s), cLightGrayColor, capgrpVolume);
             end;
         cMuteToggle:= false;
         end;