Advertisement
Guest User

display

a guest
Jun 29th, 2016
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.22 KB | None | 0 0
  1. mR = peripheral.wrap("monitor_5")
  2. mL = peripheral.wrap("monitor_6")
  3. -- Size of text --
  4. scaleL = 5
  5. scaleR = 5
  6.  
  7. -- Left has 15 max chars --
  8. -- Right has 16 max chars --
  9. textL = "IPolitic's" textR = "Battle Arena"
  10. textL2 = "Todays Fight:" textR2 = " "
  11. textL3 = " " textR3 = " "
  12. textL4 = "Yevois VS" textR4 = " Alex"
  13. textL5 = " " textR5 = " "
  14. textL6 = " " textR6 = " "
  15.  
  16. -- Colors --
  17. mL.setBackgroundColor(colors.blue)
  18. mR.setBackgroundColor(colors.red)
  19.  
  20. mL.clear()
  21. mR.clear()
  22.  
  23. xL = mL.getSize()
  24. yL = mL.getSize()
  25. xR = mR.getSize()
  26. yR = mR.getSize()
  27.  
  28. mL.setTextScale(scaleL)
  29. mR.setTextScale(scaleR)
  30. -- line 1 --
  31. mL.setCursorPos((xL - #textL), 1) mL.write(textL)
  32. mR.setCursorPos(1,1) mR.write(textR)
  33. -- line 2 --
  34. mL.setCursorPos((xL - #textL2), 2) mL.write(textL2)
  35. mR.setCursorPos(1,2) mR.write(textR2)
  36. -- line 3 --
  37. mL.setCursorPos((xL - #textL3), 3) mL.write(textL3)
  38. mR.setCursorPos(1,3) mR.write(textR3)
  39. -- line 4 --
  40. mL.setCursorPos((xL - #textL4), 4) mL.write(textL4)
  41. mR.setCursorPos(1,4) mR.write(textR4)
  42. --line 5 --
  43. mL.setCursorPos((xL - #textL5), 5) mL.write(textL5)
  44. mR.setCursorPos(1,5) mR.write(textR5)
  45. --line 6 --
  46. mL.setCursorPos((xL - #textL6), 6) mL.write(textL6)
  47. mR.setCursorPos(1,6) mR.write(textR6)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement