Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("button")
- m = peripheral.wrap("bottom")
- m.clear()
- m.setTextScale(1)
- m.setTextColor(colors.yellow)
- m.setCursorPos(6,6)
- m.write("Bienvenue")
- m.setCursorPos(3,8)
- m.write("au Mc Donald de")
- m.setCursorPos(1,10)
- m.write("CraftHard-Yolomods")
- function ecran()
- button.setTable("Commencer",button0,3,16,13,13)
- button.screen()
- end
- function button0() button.toggleButton("Commencer") --bouton de base
- sleep(1)
- button.toggleButton("Commencer")
- print("commande:")
- shell.run("Sandwish")
- end
- function getClick()
- event,side,x,y = os.pullEvent("monitor_touch")
- button.checkxy(x,y)
- end
- ecran()
- while true do getClick() end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement