MagmaLP

Main Screen Spawn

Apr 9th, 2021 (edited)
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.99 KB | None | 0 0
  1. mon = peripheral.wrap("left")
  2. mon.setBackgroundColor(32768)
  3. mon.setTextScale(1.5)
  4. mon.clear()
  5. side = "left"
  6.  
  7. function calc_color(color)
  8.     return math.pow(2, color - 1)
  9. end
  10. function msg(gap, line, color, groundb, text)
  11.     mon.setBackgroundColor(calc_color(groundb))
  12.     mon.setCursorPos(gap,line)
  13.     mon.setTextColor(calc_color(color))
  14.     text = mon.write(text)
  15. end
  16.  
  17. msg(01,01,02,16,"German:")
  18. msg(01,02,02,16,"~~~~~~~")
  19. msg(01,03,04,16,"Du musst der Stadt ...")
  20. msg(01,04,04,16,"beitreten, um die Compter nutzen zu")
  21. msg(01,05,04,16,"können. ")
  22. msg(01,06,05,16,"/t join name")
  23. msg(01,07,04,16,"Mehr infos zur Stadt, zu deiner linken.")
  24. msg(02,08,01,16,"<-----")
  25.  
  26. msg(01,10,02,16,"English:")
  27. msg(01,11,02,16,"~~~~~~~~")
  28. msg(01,12,04,16,"You have to join the City ...")
  29. msg(01,13,04,16,"to use the Computers.")
  30. msg(01,14,05,16,"/t join name")
  31. msg(01,15,04,16,"More informations about the City,")
  32. msg(01,16,04,16,"on the Screen to your right.")
  33. msg(02,17,01,16,"----->")
Add Comment
Please, Sign In to add comment