Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("gui")
- pChest = peripheral
- -- gui.addButton("name",func,xmin,xmax,ymin,ymax,colors.blue,colors.yellow)
- gui.addButton("Nether",nether,10,20,7,7,colors.blue,colors.yellow)
- gui.addButton("End",theEnd,10,20,9,9,colors.blue,colors.yellow)
- gui.addButton("Test3",test3,10,20,11,11,colors.blue,colors.yellow)
- gui.addButton("Test4",test4,10,20,13,13,colors.blue,colors.yellow)
- gui.screenButton()
- function getClick()
- event,side,x,y = os.pullEvent("monitor_touch")
- gui.checkxy(x,y)
- end
- function nether()
- gui.flash("Nether")
- print("Nether")
- end
- function theEnd()
- gui.flash("End")
- print("theEnd")
- end
- function test3()
- gui.flash("Test3")
- print("test3")
- end
- function test4()
- gui.flash("Test4")
- print("test4")
- end
- gui.heading("DEMO PROGRAM W.I.P")
- gui.label(1,5,"Demo")
- while true do
- getClick()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement