share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua
changeset 13596 7699987d9f70
parent 13585 72515cd20984
child 13599 11497a930b29
equal deleted inserted replaced
13595:0adc82afb784 13596:7699987d9f70
  2859 	updateCursorCoords()
  2859 	updateCursorCoords()
  2860 end
  2860 end
  2861 
  2861 
  2862 -- Display the X and Y coordinates of the cursor while the cursor is active
  2862 -- Display the X and Y coordinates of the cursor while the cursor is active
  2863 function updateCursorCoords()
  2863 function updateCursorCoords()
  2864 	if band(GetState(CurrentHedgehog), gstChooseTarget) ~= 0 and CursorX ~= -2147483648 then
  2864 	if band(GetState(CurrentHedgehog), gstChooseTarget) ~= 0 and CursorX ~= NoPoitX then
  2865 		local x1, y = 12, 24
  2865 		local x1, y = 12, 24
  2866 		if tagCursorX then
  2866 		if tagCursorX then
  2867 			DeleteVisualGear(tagCursorX)
  2867 			DeleteVisualGear(tagCursorX)
  2868 		end
  2868 		end
  2869 		tagCursorX = AddVisualGear(-div(ScreenWidth, 2)+x1, y, vgtHealthTag, CursorX, true)
  2869 		tagCursorX = AddVisualGear(-div(ScreenWidth, 2)+x1, y, vgtHealthTag, CursorX, true)