share/hedgewars/Data/Scripts/Multiplayer/Space_Invasion.lua
changeset 14301 8fc6ac47f00a
parent 13769 e874bfe563c7
child 14401 6c21bd8547dd
equal deleted inserted replaced
14300:79e07510b8e3 14301:8fc6ac47f00a
   329 end
   329 end
   330 
   330 
   331 function DrawTag(i)
   331 function DrawTag(i)
   332 
   332 
   333 	local zoomL = 1.3
   333 	local zoomL = 1.3
   334 	local xOffset = 40
   334 	local xOffset, yOffset, tValue, tCol
   335 	local yOffset, tValue, tCol
       
   336 
   335 
   337 	if i == SI.TAG_TIME then
   336 	if i == SI.TAG_TIME then
   338 		yOffset = 40
   337 		if INTERFACE == "touch" then
       
   338 			xOffset = 60
       
   339 			yOffset = ScreenHeight - 35
       
   340 		else
       
   341 			xOffset = 40
       
   342 			yOffset = 40
       
   343 		end
   339 		tCol = SI.colorTimer
   344 		tCol = SI.colorTimer
   340 		tValue = SI.TimeLeft
   345 		tValue = SI.TimeLeft
   341 	elseif i == SI.TAG_BARRELS then
   346 	elseif i == SI.TAG_BARRELS then
   342 		zoomL = 1.1
   347 		zoomL = 1.1
   343 		yOffset = 70
   348 		if INTERFACE == "touch" then
       
   349 			xOffset = 126
       
   350 			yOffset = ScreenHeight - 37
       
   351 		else
       
   352 			xOffset = 40
       
   353 			yOffset = 70
       
   354 		end
   344 		tCol = SI.colorAmmo
   355 		tCol = SI.colorAmmo
   345 		tValue = SI.wepAmmo[SI.wepIndex]
   356 		tValue = SI.wepAmmo[SI.wepIndex]
   346 	elseif i == SI.TAG_SHIELD then
   357 	elseif i == SI.TAG_SHIELD then
   347 		zoomL = 1.1
   358 		zoomL = 1.1
   348 		xOffset = 40 + 35
   359 		if INTERFACE == "touch" then
   349 		yOffset = 70
   360 			xOffset = 126 + 35
       
   361 			yOffset = ScreenHeight - 37
       
   362 		else
       
   363 			xOffset = 40 + 35
       
   364 			yOffset = 70
       
   365 		end
   350 		tCol = SI.colorShield
   366 		tCol = SI.colorShield
   351 		tValue = SI.shieldHealth - 80
   367 		tValue = SI.shieldHealth - 80
   352 	elseif i == SI.TAG_ROUND_SCORE then
   368 	elseif i == SI.TAG_ROUND_SCORE then
   353 		zoomL = 1.1
   369 		zoomL = 1.1
   354 		xOffset = 40
   370 		if INTERFACE == "touch" then
   355 		yOffset = 100
   371 			xOffset = 126 + 70
       
   372 			yOffset = ScreenHeight - 37
       
   373 		else
       
   374 			xOffset = 40
       
   375 			yOffset = 100
       
   376 		end
   356 		tCol = SI.colorScore
   377 		tCol = SI.colorScore
   357 		tValue = SI.roundScore
   378 		tValue = SI.roundScore
   358 	end
   379 	end
   359 
   380 
   360 	DeleteVisualGear(SI.vTag[i])
   381 	DeleteVisualGear(SI.vTag[i])