equal
deleted
inserted
replaced
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) |