Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a=peripheral.wrap("top")
- a.clear()
- a.setTextColor(colors.green)
- a.setTextScale(1)
- function b(c)
- return math.floor(c+0.5)
- end
- d="<- Tech Shop"
- z=" Science Shop ->"
- e=4
- f,g=a.getSize()
- f=b(f/e)
- g=b(g/e)
- a.setTextScale(e)
- a.setCursorPos(b(f/2)-b(d:len()/2),b(g/2))
- a.setCursorPos(b(f/2)-b(z:len()/2),b(g/4))
- a.write(d)
- a.write(z)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement