changeset 14301 | 8fc6ac47f00a |
parent 13849 | 297cf5c19172 |
child 14345 | ef7501d9935c |
14300:79e07510b8e3 | 14301:8fc6ac47f00a |
---|---|
2866 end |
2866 end |
2867 |
2867 |
2868 -- Display the X and Y coordinates of the cursor while the cursor is active |
2868 -- Display the X and Y coordinates of the cursor while the cursor is active |
2869 function updateCursorCoords() |
2869 function updateCursorCoords() |
2870 if band(GetState(CurrentHedgehog), gstChooseTarget) ~= 0 and CursorX ~= NO_CURSOR then |
2870 if band(GetState(CurrentHedgehog), gstChooseTarget) ~= 0 and CursorX ~= NO_CURSOR then |
2871 local x1, y = 12, 24 |
2871 local x1, y |
2872 if INTERFACE == "touch" then |
|
2873 x1, y = 126, 32 |
|
2874 else |
|
2875 x1, y = 12, 24 |
|
2876 end |
|
2872 if tagCursorX then |
2877 if tagCursorX then |
2873 DeleteVisualGear(tagCursorX) |
2878 DeleteVisualGear(tagCursorX) |
2874 end |
2879 end |
2875 tagCursorX = AddVisualGear(-div(ScreenWidth, 2)+x1, y, vgtHealthTag, CursorX, true) |
2880 tagCursorX = AddVisualGear(-div(ScreenWidth, 2)+x1, y, vgtHealthTag, CursorX, true) |
2876 SetVisualGearValues(tagCursorX, nil, nil, 0, 0, nil, 1, nil, nil, 240000, 0xFFFFFFFF) |
2881 SetVisualGearValues(tagCursorX, nil, nil, 0, 0, nil, 1, nil, nil, 240000, 0xFFFFFFFF) |