share/hedgewars/Data/Scripts/Multiplayer/Space_Invasion.lua
changeset 5825 a6eab1b7c00d
parent 5629 c24d29a538af
child 5827 a416f1070fdf
--- a/share/hedgewars/Data/Scripts/Multiplayer/Space_Invasion.lua	Fri Sep 09 03:57:45 2011 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Space_Invasion.lua	Fri Sep 09 15:36:30 2011 +0200
@@ -5,7 +5,7 @@
 ---------------------------------------------------
 ---------------------------------------------------
 ---------------------------------------------------
---- Space Invasion Code Follows (0.8)
+--- Space Invasion Code Follows (0.8.1)
 ---------------------------------------------------
 ---------------------------------------------------
 -- VERSION HISTORY
@@ -106,6 +106,13 @@
 -- added a HUD for turntimeleft, ammo, shield
 -- shieldhealth hits 0 properly
 
+------------------------
+-- version 0.8.1
+------------------------
+
+-- stop hiding non-existant 4th Tag
+-- redraw HUD on screen resolution change
+
 --------------------------
 --notes for later
 --------------------------
@@ -301,7 +308,7 @@
 
 function HideTags()
 
-	for i = 0, 3 do 	
+	for i = 0, 2 do
 		SetVisualGearValues(vTag[i],0,0,0,0,0,1,0, 0, 240000, 0xffffff00)
 	end
 
@@ -797,6 +804,16 @@
 
 end
 
+function onScreenResize()
+
+	-- redraw Tags so that their screen locations are updated
+	if (CurrentHedgehog ~= nil) and (tumbleStarted == true) then
+			DrawTag(0)
+			DrawTag(1)
+			DrawTag(2)
+	end
+
+end
 
 function onNewTurn()