share/hedgewars/Data/Scripts/Multiplayer/Construction_Mode.lua
changeset 11730 8cc9c8a43dcc
parent 11729 2d57eed66d41
child 11732 e28b534188d3
child 11758 b6cf979b3377
--- a/share/hedgewars/Data/Scripts/Multiplayer/Construction_Mode.lua	Wed Apr 13 03:04:24 2016 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Construction_Mode.lua	Wed Apr 13 03:17:32 2016 +0200
@@ -1396,19 +1396,6 @@
 
 end
 
-function showModeMessage()
-	if CurrentHedgehog == nil then return end
-	local val = pMode[pIndex]
-	local str
-	if cat[cIndex] == "Mine Placement Mode" then
-		-- timer in seconds
-		str = string.format(loc("%d sec"), div(val, 1000))
-	else
-		str = tostring(val)
-	end
-	AddCaption(str,0xffba00ff,capgrpMessage2)
-end
-
 function onRight()
 
 	pIndex = pIndex + 1
@@ -1423,6 +1410,22 @@
 
 end
 
+function showModeMessage()
+	if CurrentHedgehog == nil then return end
+	local val = pMode[pIndex]
+	local str
+	if cat[cIndex] == "Mine Placement Mode" then
+		-- timer in seconds
+		str = string.format(loc("%d sec"), div(val, 1000))
+	elseif cat[cIndex] == "Girder Placement Mode" then
+		str = loc("Girder")
+	elseif cat[cIndex] == "Rubber Placement Mode" then
+		str = loc("Rubber")
+	else
+		str = tostring(val)
+	end
+	AddCaption(str,0xffba00ff,capgrpMessage2)
+end
 
 function updatePlacementDisplay(pDir)