Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function calc_color(color)
- return math.pow(2, color - 1)
- end
- function msg(gap, line, color, groundb, text)
- term.setBackgroundColor(calc_color(groundb))
- term.setCursorPos(gap,line)
- term.setTextColor(calc_color(color))
- text = term.write(text)
- end
- term.setBackgroundColor(32768)
- term.clear()
- while true do
- msg(15,02,09,16,"Please select Category")
- msg(15,03,09,16,"~~~~~~~~~~~~~~~~~~~~~~")
- msg(03,04,01,15," ") msg(28,04,01,15," ")
- msg(03,05,01,15," Item-Value Calc. ") msg(28,05,01,15," SMF-Output Calc. ")
- msg(03,06,01,15," ") msg(28,06,01,15," ")
- msg(03,08,01,15," ") msg(28,08,01,15," ")
- msg(03,09,01,15," 2. ") msg(28,09,01,15," SMF- Level-Up Inputs ")
- msg(03,10,01,15," ") msg(28,10,01,15," ")
- msg(03,12,01,15," ") msg(28,12,01,15," ")
- msg(03,13,01,15," 3. ") msg(28,13,01,15," SMF-Overclock Inputs ")
- msg(03,14,01,15," ") msg(28,14,01,15," ")
- msg(03,16,01,15," ") msg(28,16,01,15," ")
- msg(03,17,01,15," 4. ") msg(28,17,01,15," 8. ")
- msg(03,18,01,15," ") msg(28,18,01,15," ")
- local event, button, X, Y = os.pullEvent("mouse_click")
- if X >= 03 and X <= 24 and Y >= 04 and Y <= 06 then --Item-Value Calc.
- shell.run("Itemvalue_EN")
- elseif X >= 03 and X <= 24 and Y >= 08 and Y <= 10 then --2
- shell.run(" ")
- elseif X >= 03 and X <= 24 and Y >= 12 and Y <= 14 then --3
- shell.run(" ")
- elseif X >= 03 and X <= 24 and Y >= 16 and Y <= 18 then --4
- shell.run(" ")
- elseif X >= 28 and X <= 49 and Y >= 04 and Y <= 06 then --SMF-Output Calc.
- shell.run(" ")
- elseif X >= 28 and X <= 49 and Y >= 08 and Y <= 10 then --SMF- Level-Up Inputs
- shell.run(" ")
- elseif X >= 28 and X <= 49 and Y >= 12 and Y <= 14 then --SMF-Overclock Inputs
- shell.run(" ")
- elseif X >= 28 and X <= 49 and Y >= 14 and Y <= 16 then --8
- shell.run(" ")
- end
- sleep(0.5)
- end
Advertisement
Add Comment
Please, Sign In to add comment