Advertisement
CodeCrafter

Untitled

May 1st, 2013
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. local tArgs = {...}
  2.  
  3. local User = tArgs[1]
  4. term.clear()
  5. term.setCursorPos(1,1)
  6. term.setBackgroundColor(colors.lime)
  7. print(User)
  8.  
  9. term.setCursorPos(20,1)
  10. term.setBackgroundColor(colors.black)
  11. term.setTextColor(colors.cyan)
  12. print("Menu")
  13.  
  14. term.setCursorPos(5,5)
  15. print("Paint")
  16. term.setCursorPos(20,5)
  17. print("Store")
  18.  
  19. while true do
  20. local event, button, X, Y = os.pullEvent("mouse_click")
  21. xy = X..","..Y
  22.  
  23. if xy == "5,5" then
  24.  
  25. shell.run("Minedows/Programs/Paint")
  26.  
  27. break
  28. end
  29.  
  30. if xy == "20,5" or "21,5" or "22,5" or "23,5" or "24,5" or "25,5" or "26,5" or "27,5" or "28,5" or "29,5" or "30,5" then
  31.  
  32. shell.run("Minedows/programs/Store",User)
  33.  
  34. break
  35. end
  36. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement