Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- m = peripheral.wrap("right")
- slc = 0
- tBarC = 8
- tBartC = 1
- backColor = 1
- function titlebar()
- term.setCursorPos(1,1)
- term.setBackgroundColor(tBarC)
- term.setTextColor(tBartC)
- term.clearLine()
- term.setCursorPos(3,1)
- print("[Select which apiary]")
- term.setCursorPos(39,19)
- print("[Start]")
- end
- function background()
- term.setBackgroundColor(backColor)
- term.clear()
- bground = paintutils.loadImage(".gui")
- paintutils.drawImage(bground,1,1)
- end
- function one()
- term.clear()
- term.setCursorPos(1,1)
- term.setBackgroundColor(32768)
- print("apairy 1")
- end
- function two()
- term.clear()
- term.setCursorPos(1,1)
- term.setBackgroundColor(32768)
- print("apairy 2")
- end
- function three()
- term.clear()
- term.setCursorPos(1,1)
- term.setBackgoundColor(32768)
- print("apairy 3")
- end
- function four()
- term.clear()
- term.setCursorPos(1,1)
- term.setBackgoundColor(32768)
- print("apairy 4")
- end
- function five()
- term.clear()
- term.setCursorPos(1,1)
- term.setBackgoundColor(32768)
- print("apairy 5")
- end
- function six()
- term.clear()
- term.setCursorPos(1,1)
- term.setBackgoundColor(32768)
- print("apairy 6")
- end
- function seven()
- term.clear()
- term.setCursorPos(1,1)
- term.setBackgoundColor(32768)
- print("apairy 7")
- end
- function eight()
- term.clear()
- term.setCursorPos(1,1)
- term.setBackgoundColor(32768)
- print("apairy 8")
- end
- function nine()
- term.clear()
- term.setCursorPos(1,1)
- term.setBackgoundColor(32768)
- print("apairy 9")
- end
- function ten()
- term.clear()
- term.setCursorPos(1,1)
- term.setBackgoundColor(32768)
- print("apairy 3")
- end
- -- print(table.concat({os.pullEventRaw()}, ","))
- while true do
- background()
- event, X, Y = os.pullEvent("mouse_click")
- X = tonumber(X)
- Y = tonumber(Y)
- if X == 1 and Y = 5 then
- one()
- elseif X == 1 and Y == 9 then
- two()
- elseif X == 1 and Y == 13 then
- three()
- elseif X == 1 and Y == 17 then
- four()
- elseif X == 1 and Y == 21 then
- five()
- elseif X == 1 and Y == 25 then
- six()
- elseif X == 1 and Y == 29 then
- seven()
- elseif X == 1 and Y == 33 then
- eight()
- elseif X == 1 and Y == 37 then
- nine()
- elseif X == 1 and Y == 41 then
- ten()
- else
- print(X..", "..Y)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement