MagmaLP

SMF-PC-Kategory-EN

Aug 26th, 2024 (edited)
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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(32768)
  13. term.clear()
  14. while true do
  15.     msg(15,02,09,16,"Please select Category")
  16.     msg(15,03,09,16,"~~~~~~~~~~~~~~~~~~~~~~")
  17.  
  18.     msg(03,04,01,15,"                      ") msg(28,04,01,15,"                      ")
  19.     msg(03,05,01,15,"   Item-Value Calc.   ") msg(28,05,01,15,"   SMF-Output Calc.   ")
  20.     msg(03,06,01,15,"                      ") msg(28,06,01,15,"                      ")
  21.  
  22.     msg(03,08,01,15,"                      ") msg(28,08,01,15,"                      ")
  23.     msg(03,09,01,15,"          2.          ") msg(28,09,01,15," SMF- Level-Up Inputs ")
  24.     msg(03,10,01,15,"                      ") msg(28,10,01,15,"                      ")
  25.  
  26.     msg(03,12,01,15,"                      ") msg(28,12,01,15,"                      ")
  27.     msg(03,13,01,15,"          3.          ") msg(28,13,01,15," SMF-Overclock Inputs ")
  28.     msg(03,14,01,15,"                      ") msg(28,14,01,15,"                      ")
  29.  
  30.     msg(03,16,01,15,"                      ") msg(28,16,01,15,"                      ")
  31.     msg(03,17,01,15,"          4.          ") msg(28,17,01,15,"          8.          ")
  32.     msg(03,18,01,15,"                      ") msg(28,18,01,15,"                      ")
  33.  
  34.     local event, button, X, Y = os.pullEvent("mouse_click")
  35.     if X >= 03 and X <= 24 and Y >= 04 and Y <= 06 then         --Item-Value Calc.
  36.         shell.run("Itemvalue_EN")
  37.     elseif X >= 03 and X <= 24 and Y >= 08 and Y <= 10 then     --2
  38.         shell.run(" ")
  39.     elseif X >= 03 and X <= 24 and Y >= 12 and Y <= 14 then     --3
  40.         shell.run(" ")
  41.     elseif X >= 03 and X <= 24 and Y >= 16 and Y <= 18 then     --4
  42.         shell.run(" ")
  43.     elseif X >= 28 and X <= 49 and Y >= 04 and Y <= 06 then     --SMF-Output Calc.
  44.         shell.run(" ")
  45.     elseif X >= 28 and X <= 49 and Y >= 08 and Y <= 10 then     --SMF- Level-Up Inputs
  46.         shell.run(" ")
  47.     elseif X >= 28 and X <= 49 and Y >= 12 and Y <= 14 then     --SMF-Overclock Inputs
  48.         shell.run(" ")
  49.     elseif X >= 28 and X <= 49 and Y >= 14 and Y <= 16 then     --8
  50.         shell.run(" ")        
  51.     end
  52.     sleep(0.5)
  53. end
Advertisement
Add Comment
Please, Sign In to add comment