Marlingaming

USSR Default Appstore SMI.OS

Jan 12th, 2021 (edited)
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. function AppStoreMenu()
  2. term.setBackgroundColour(1)
  3. term.clear
  4. term.setCursorPos(1,2)
  5. term.write("App Store")
  6. term.setCursorPos(1,5)
  7. term.write("1=Store, 2=Downloaded, 3=Information/News, 4=Leave")
  8. t = read()
  9. if t == 1 then
  10. Store()
  11. elseif t == 2 then
  12. Library()
  13. elseif t == 3 then
  14. StoreNews()
  15. elseif t == 4 then
  16. shell.run("Default_SMI.OS")
  17. end
  18. end
  19. function Store()
  20. term.clear
  21. term.setCursorPos(1,6)
  22. term.write("All undownloaded Applications\n")
  23.  
  24. print("-1-Nicholas FileManager--\n")
  25. print("-2-Remote Control Drone Controller(Coming Soon!)\n")
  26. print("-3-MCD Play(Coming Soon!)\n")
  27. print("-4-USSR News Channel(Coming Soon!)\n")
  28. print("-5-USSR E-Book Host(Coming Soon!)\n")
  29. print("-6-NEXT PAGE--\n")
  30. print("-7-\n")
  31. print("-8-Return")
  32. t = read()
  33. if t == 1 then
  34. AppDetails("Nicholas FileManager")
  35. if t == 2 then
  36.  
  37. if t == 3 then
  38.  
  39. if t == 4 then
  40.  
  41. if t == 5 then
  42.  
  43. if t == 6 then
  44.  
  45. if t == 7 then
  46.  
  47. if t == 8 then
  48. AppStoreMenu()
  49. end
  50. end
  51. function Library()
  52.  
  53. end
  54. function StoreNews()
  55.  
  56. end
  57. function AppDetails(App)
  58. term.clear
  59. term.setCursorPos(1,1)
  60. term.write("Press E to exit, A to Download")
  61. term.setCursorPos(5,3)
  62. term.write(App)
  63. term.setCursorPos(1,7)
  64. if App == "Nicholas FileManager" then
  65. term.write("A multi purpose file Manager, able to view all files, view file contents, and \n even Edit the file! Created by Marlin on 1/12/21")
  66. end
  67. t = read()
  68. if t == "e" then
  69. AppStoreMenu
  70. elseif t == "a" then
  71. DownloadApp(App)
  72. end
  73. end
  74. function DownloadApp(App)
  75. if App == "Nicholas FileManager" and (fs.exists("Nicholas_FileManager_SMI.OS")) == false then
  76. shell.run("pastebin get bWhfkPx3 Nicholas_FileManager_SMI.OS")
  77. fs.open("Nicholas_FileManagerV1.0.0", "w")
  78. fs.write("App Version 1.0.0,Downloaded by Appstore")
  79. fs.close
  80. end
  81. end
  82. AppStoreMenu()
Advertisement
Add Comment
Please, Sign In to add comment