Advertisement
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
- msg(01,04,09,16,"This computer calculates a guide value for")
- msg(01,05,09,16,"items that you can trade.")
- msg(01,07,08,16,"---------------------------------------------------")
- msg(13,08,01,15," ") msg(29,08,01,15," ")
- msg(13,09,01,15," ") msg(29,09,01,15," ")
- msg(13,10,01,15," English ") msg(29,10,01,15," Deutsch ")
- msg(13,11,01,15," ") msg(29,11,01,15," ")
- msg(13,12,01,15," ") msg(29,12,01,15," ")
- msg(01,13,08,16,"---------------------------------------------------")
- msg(01,15,09,16,"Dieser Computer rechnet dir Richtwerte aus")
- msg(01,16,09,16,"für Items, die du tauschen kannst.")
- local event, button, X, Y = os.pullEvent("mouse_click")
- if X >= 13 and X <= 23 and Y >= 8 and Y <= 12 then
- shell.run("english")
- elseif X >= 29 and X <= 39 and Y >= 8 and Y <= 12 then
- shell.run("deutsch")
- else
- os.reboot()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement