# HG changeset patch # User Wuzzy # Date 1533730232 -7200 # Node ID 007813b81f1bd44635261dd37f5e9216b7137a1d # Parent cb01913941337f3d97483c592c52a854d82a59c2 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 diff -r cb0191394133 -r 007813b81f1b hedgewars/uCommandHandlers.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; diff -r cb0191394133 -r 007813b81f1b hedgewars/uConsts.pas --- 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} diff -r cb0191394133 -r 007813b81f1b hedgewars/uGame.pas --- 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;