Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mon = peripheral.wrap("bottom")
- rednet.open("right")
- term.setBackgroundColor(32768)
- mon.setBackgroundColor(32768)
- mon.clear()
- term.redirect(mon)
- mon.setTextScale(0.99)
- mon.setTextColor(32768)
- paintutils.drawBox(2,22,8,23,128)
- paintutils.drawBox(50,22,56,23,128)
- paintutils.drawFilledBox(2,4,28,8.5,256)
- paintutils.drawBox(2,4,28,8.5,128)
- mon.setCursorPos(4,6)
- mon.setBackgroundColor(256)
- mon.write("Cola")
- paintutils.drawFilledBox(2,10,28,14,256)
- paintutils.drawBox(2,10,28,14,128)
- mon.setCursorPos(4,12)
- mon.setBackgroundColor(256)
- mon.write("Lemon")
- paintutils.drawFilledBox(2,16,28,20,256)
- paintutils.drawBox(2,16,28,20,128)
- mon.setCursorPos(4,18)
- mon.setBackgroundColor(256)
- mon.write("Orange")
- paintutils.drawFilledBox(30,4,56,8.5,256)
- paintutils.drawBox(30,4,56,8.5,128)
- mon.setCursorPos(32,6)
- mon.setBackgroundColor(256)
- mon.write("Fraise")
- paintutils.drawFilledBox(30,10,56,14,256)
- paintutils.drawBox(30,10,56,14,128)
- mon.setCursorPos(32,12)
- mon.setBackgroundColor(256)
- mon.write("Cerise")
- paintutils.drawFilledBox(30,16,56,20,256)
- paintutils.drawBox(30,16,56,20,128)
- mon.setCursorPos(32,18)
- mon.setBackgroundColor(256)
- mon.write("Raisin")
- while true do
- event, side, x, y = os.pullEvent("monitor_touch")
- mon.setCursorPos(1,1)
- mon.setBackgroundColor(32768)
- mon.setTextColor(1)
- mon.clearLine(1)
- if x > 2 and x < 28 and y > 4 and y < 8.5 then
- -- mon.setCursorPos(1,1)
- -- mon.write("Burger")
- rednet.send(1561,"Cola")
- end
- if x > 2 and x < 28 and y > 10 and y < 14 then
- -- mon.setCursorPos(1,1)
- -- mon.write("Cheese Burger")
- rednet.send(1561,"Lemon")
- end
- if x > 2 and x < 28 and y > 16 and y < 20 then
- -- mon.setCursorPos(1,1)
- -- mon.write("Deluxe Cheese Burger")
- rednet.send(1561,"Orange")
- end
- if x > 30 and x < 56 and y > 4 and y < 8.5 then
- -- mon.setCursorPos(1,1)
- -- mon.write("Bacon Burger")
- rednet.send(1561,"Fraise")
- end
- if x > 30 and x < 56 and y > 10 and y < 14 then
- -- mon.setCursorPos(1,1)
- -- mon.write("Onion Burger")
- rednet.send(1561,"Cerise")
- end
- if x > 30 and x < 56 and y > 16 and y < 20 then
- -- mon.setCursorPos(1,1)
- -- mon.write("McPam")
- rednet.send(1561,"Raisin")
- end
- if x > 2 and x < 8 and y > 21 and y < 24 then
- mon.clear()
- shell.run('interface')
- end
- if x > 50 and x < 56 and y > 21 and y < 24 then
- mon.clear()
- shell.run('interface_3')
- end
- end
- term.redirect(term.native())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement