Advertisement
Marlingaming

Temp Test Information Display Script

Jun 17th, 2022
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. local Monitor = peripheral.find("monitor")
  2. local TestNum = {1,5}
  3.  
  4.  
  5. function DrawDisplay()
  6. local w, h = Monitor.getSize()
  7. Monitor.setBackgroundColor(colors.white)
  8. Monitor.setTextColor(colors.black)
  9. Monitor.clear()
  10. local LEN = string.len(TestNum[1].." / "..TestNum[2])
  11. Monitor.setCursorPos(2,w-LEN/2)
  12. Monitor.write(TestNum[1].." / "..TestNum[2])
  13. end
  14.  
  15.  
  16. DrawDisplay()
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement