HedgeEditor: Improved help disabled message, also loc()'ed
authorWuzzy <almikes@aol.com>
Sat, 09 Apr 2016 08:52:19 +0200
changeset 12006 acf5dab74f92
parent 12005 132ffe52d943
child 12007 a2f0c0d0e534
HedgeEditor: Improved help disabled message, also loc()'ed
share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua
--- a/share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua	Sat Apr 09 08:45:46 2016 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua	Sat Apr 09 08:52:19 2016 +0200
@@ -2960,7 +2960,11 @@
 	elseif (preciseOn == true) and (s == 1) then
 		if (GetCurAmmoType() == amGirder) or  (GetCurAmmoType() == amRubber) or  (GetCurAmmoType() == amAirAttack) then
 			helpDisabled = not(helpDisabled)
-			AddCaption("Help Disabled: " .. BoolToString(helpDisabled),0xffba00ff,capgrpVolume)
+			if helpDisabled then
+				AddCaption(loc("Help Disabled"),0xffba00ff,capgrpVolume)
+			else
+				AddCaption(loc("Help Enabled"),0xffba00ff,capgrpVolume)
+			end
 			updateHelp()
 		end
 	elseif (cat[cIndex] == loc("Sprite Placement Mode")) or (cat[cIndex] == loc("Girder Placement Mode")) or (cat[cIndex] == loc("Rubber Placement Mode")) or (cat[cIndex] == loc("Sprite Modification Mode")) then