share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua
changeset 13599 11497a930b29
parent 13596 7699987d9f70
child 13643 690cc84e9fd6
equal deleted inserted replaced
13598:f4d51ecf6043 13599:11497a930b29
  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 ~= NoPoitX then
  2864 	if band(GetState(CurrentHedgehog), gstChooseTarget) ~= 0 and CursorX ~= NoPointX 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)