Advertisement
The_50cents

bmcdo startup

Sep 11th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. os.loadAPI("button")
  2. m = peripheral.wrap("bottom")
  3. m.clear()
  4. m.setTextScale(1)
  5. m.setTextColor(colors.yellow)
  6. m.setCursorPos(6,6)
  7. m.write("Bienvenue")
  8. m.setCursorPos(3,8)
  9. m.write("au Mc Donald de")
  10. m.setCursorPos(1,10)
  11. m.write("CraftHard-Yolomods")
  12.  
  13. function ecran()
  14. button.setTable("Commencer",button0,3,16,13,13)
  15. button.screen()
  16. end
  17.  
  18. function button0() button.toggleButton("Commencer") --bouton de base
  19. sleep(1)
  20. button.toggleButton("Commencer")
  21. print("commande:")
  22. shell.run("Sandwish")
  23. end
  24.  
  25. function getClick()
  26. event,side,x,y = os.pullEvent("monitor_touch")
  27. button.checkxy(x,y)
  28. end
  29.  
  30. ecran()
  31.  
  32. while true do getClick() end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement