Guest User

main

a guest
May 20th, 2013
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.40 KB | None | 0 0
  1. --os.loadAPI("button")
  2. m = peripheral.wrap("bottom")
  3. rednet.open("top")
  4. m.clear()
  5.  
  6. function CenterX(text, y)
  7. mX = m.getSize()
  8. x = math.ceil(mX/2) - math.floor(string.len(text)/2)
  9. m.setCursorPos(x, y)
  10. end
  11.  
  12. CenterX("SmexxarN's SKYNET", 2)
  13. m.write("SmexxarN's SKYNET")
  14. CenterX("STATUS: ONLINE", 3)
  15. m.write("STATUS: ")
  16. m.setTextColor(colors.green)
  17. m.write("ONLINE")
  18. m.setTextColor(colors.white)
Advertisement
Add Comment
Please, Sign In to add comment