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=" <- Casino Shop"
- z=" Tech Shop ->"
- e=4
- f,g=a.getSize()
- f=b(f/e)
- g=b(g/e)
- a.setTextScale(e-1)
- a.setCursorPos(b(f/2)-b(d:len()/2),2)
- a.write(d)
- a.setCursorPos(b(f/2)-b(z:len()/2),4)
- a.write(z)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement