Quipex

Disk/startup

Apr 22nd, 2012
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. function clear()
  2. term.clear()
  3. term.setCursorPos(1,1)
  4. end
  5.  
  6. clear()
  7. shell.run('disk/mem/redworks/apis/redworks')
  8. print(" _ \\ | | ")
  9. print(" / -_) _' | \\ \\ \\ / _ \\ _| | / (_-< ")
  10. print(" _|_\\ \\___| \\__,_| \\_/\\_/ \\___/ _| _\\_\\ ___/ ")
  11. print(" Development Team at http://redworksos.com")
  12.  
  13. showWindow(12,6,25,8,"Redworks v" ..version().. " Floppy","1. About\n2. Setup\n3. Uninstall\n4. Credits\n5. Quit\n")
  14. term.setCursorPos(1,16)
  15. write"Choose a selection: "
  16.  
  17. input = read()
  18.  
  19. if input == "1" then
  20. shell.run("disk/about")
  21.  
  22. elseif input == "2" then
  23. shell.run("disk/setup")
  24.  
  25. elseif input == "3" then
  26. shell.run("disk/uninstall")
  27.  
  28. elseif input == "4" then
  29. shell.run("disk/credits")
  30.  
  31. elseif input == "5" then
  32. term.clear()
  33. term.setCursorPos(7,6)
  34. sprint("Thank you for choosing Redworks")
  35. term.setCursorPos(10,8)
  36. sprint("Goodbye :D")
  37. sleep(2)
  38. os.shutdown()
  39.  
  40. elseif input ~= "1" and input ~= "2" and input ~= "3" and input ~= "4" and input ~= "5" then
  41. term.setCursorPos(1,16)
  42. term.clearLine()
  43. write("Hmm..maybe you should try a valid number?")
  44. sleep(1.5)
  45. shell.run("disk/startup")
  46. end
Advertisement
Add Comment
Please, Sign In to add comment