Advertisement
MagmaLP

Layout

Oct 15th, 2023 (edited)
742
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.72 KB | None | 0 0
  1. function calc_color(color)
  2.     return math.pow(2, color - 1)
  3. end
  4.  
  5. function msg(gap, line, color, groundb, text)
  6.     term.setBackgroundColor(calc_color(groundb))
  7.     term.setCursorPos(gap,line)
  8.     term.setTextColor(calc_color(color))
  9.     text = term.write(text)
  10. end
  11.  
  12. term.setBackgroundColor(colors.gray)
  13. term.setTextColor(colors.black)
  14. term.setCursorPos(1,1)
  15. term.clear()
  16.                                                                   --")
  17. msg(01,01,01,08,"   Solar Calculation System         Tutorial  ->  X")
  18. msg(01,02,10,16,"-----------------------------+---------------------")
  19. for i = 3,19 do
  20.     msg(30,i,10,16,"|")
  21. end
  22. msg(01,03,01,08,"          Settings           ") msg(31,03,01,08,"      On Stock       ")
  23. msg(01,04,01,08,"                             ") msg(31,04,01,08,"                     ")
  24. msg(01,05,01,08,"     Include UU-Matter       ") msg(31,05,01,08,"                     ")
  25. msg(01,06,01,08,"     Cobble Furnace Recipe   ") msg(31,06,01,08,"                     ")
  26. msg(01,07,01,08,"     Calc. Output in Solars  ") msg(31,07,01,08,"                     ")
  27. msg(01,08,01,08,"     Calc. Output in LVs     ") msg(31,08,01,08,"                     ")
  28. msg(01,09,01,08,"     Calc. Output in MVs     ") msg(31,09,01,08,"                     ")
  29. msg(01,10,01,08,"     Calc. Output in HVs     ") msg(31,10,01,08,"                     ")
  30. msg(01,11,01,08,"     Calc. Output in AEs     ") msg(31,11,01,08,"                     ")
  31. msg(01,12,01,08,"     Refresh every 10 Sec.   ") msg(31,12,01,08,"                     ")
  32. msg(01,13,01,08,"     Smart but Slow burning  ") msg(31,13,01,08,"                     ")
  33. msg(01,14,01,08,"                             ") msg(31,14,01,08,"                     ")
  34. msg(01,15,01,08,"                             ") msg(31,15,01,08,"                     ")
  35. msg(01,16,10,16,"-----------------------------+---------------------")
  36. msg(01,17,01,08,"    Craftable Solar Panels   ") msg(31,17,01,15,"                     ")
  37. msg(01,18,01,08,"                             ") msg(31,18,01,15,"   New Calculation   ")
  38. msg(01,19,01,08,"                             ") msg(31,19,01,15,"       <click>       ")
  39.  
  40. msg(02,05,01,15," ") msg(03,05,16,08,":") msg(04,05,01,09," ")
  41. msg(02,06,01,09," ") msg(03,06,16,08,":") msg(04,06,01,06," ")
  42. msg(02,07,01,09," ") msg(03,07,16,08,":") msg(04,07,01,06," ")
  43. msg(02,08,01,15," ") msg(03,08,16,08,":") msg(04,08,01,09," ")
  44. msg(02,09,01,09," ") msg(03,09,16,08,":") msg(04,09,01,06," ")
  45. msg(02,10,01,09," ") msg(03,10,16,08,":") msg(04,10,01,06," ")
  46. msg(02,11,01,09," ") msg(03,11,16,08,":") msg(04,11,01,06," ")
  47. msg(02,12,01,15," ") msg(03,12,16,08,":") msg(04,12,01,09," ")
  48. msg(02,13,01,09," ") msg(03,13,16,08,":") msg(04,13,01,06," ")
  49.  
  50. sleep(20)
  51.  
  52.  
  53.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement