I hope these scripts will help you decide where to put a “gui.text.”
function MousePosition()
local ip = input.get()
if ip.xmouse <= 0 then
ip.xmouse = 0
end
if ip.xmouse >= 253 then
ip.xmouse = 253
end
if ip.ymouse <= 0 then
ip.ymouse = 0
end
if ip.ymouse >= 217 then
ip.ymouse = 217
end
gui.text( ip.xmouse, ip.ymouse, string.format ( "(%d,%d)", ip.xmouse, ip.ymouse ) )
end
function DrawGridLines()
--~ First Display Parameters on Coordinates.
--~ Top
for i = 0, 240, 20 do
gui.text ( i, 0, string.format ( "%d", i ) )
end
--~ Left
for j = 0, 200, 20 do
gui.text ( 0, j, string.format ( "%d", j ) )
end
--~ Bottom
for k = 20, 220, 20 do
gui.text ( k, 217, string.format ( "%d", k ) )
end
--~ Right
for l = 20, 200, 20 do
gui.text ( 244, l, string.format ( "%d", l ) )
end
--~ Then Draw GridLines.
--~ Axial
for m = 0, 250, 10 do
if m % 50 == 0 then
c = "red"
else
c = "white"
end
gui.line ( m, 0, m, 225, string.format ( "%s", c ) )
end
--~ Equatrial
for n = 0, 225, 10 do
if n % 50 == 0 then
c = "red"
else
c = "white"
end
gui.line ( 0, n, 255, n, string.format ( "%s", c ) )
end
end