Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tArg = {...}
- local DataPath
- local x, y, z = gps
- local w, h = term.getSize()
- local Locations = {}
- local Zoom = 0.2
- local Nodes = {}
- function GetData()
- local file = fs.open(DataPath,"r")
- Nodes = textutils.unserialize(file.readAll())
- end
- function DrawUI()
- Text("UI1","N",w/2,1)
- Text("UI2","S",w/2,h)
- Text("UI3","W",1,h/2)
- Text("UI4","E",w,h/2)
- end
- function DrawLocations()
- for i = 1, #Locations do
- paintutils.drawPixel(Locations[i][2] * Zoom, Locations[i][3] * Zoom, colors.red)
- end
- end
- function Text(id,text,x,y)
- os.queueEvent("application_task","create_text",id,text,x,y)
- end
- if tArg[1] == "start" then
- os.queueEvent("application_task","clearEntities")
- DrawUI()
- DrawLocations()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement