Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function AppStoreMenu()
- term.setBackgroundColour(1)
- term.clear
- term.setCursorPos(1,2)
- term.write("App Store")
- term.setCursorPos(1,5)
- term.write("1=Store, 2=Downloaded, 3=Information/News, 4=Leave")
- t = read()
- if t == 1 then
- Store()
- elseif t == 2 then
- Library()
- elseif t == 3 then
- StoreNews()
- elseif t == 4 then
- shell.run("Default_SMI.OS")
- end
- end
- function Store()
- term.clear
- term.setCursorPos(1,6)
- term.write("All undownloaded Applications\n")
- print("-1-Nicholas FileManager--\n")
- print("-2-Remote Control Drone Controller(Coming Soon!)\n")
- print("-3-MCD Play(Coming Soon!)\n")
- print("-4-USSR News Channel(Coming Soon!)\n")
- print("-5-USSR E-Book Host(Coming Soon!)\n")
- print("-6-NEXT PAGE--\n")
- print("-7-\n")
- print("-8-Return")
- t = read()
- if t == 1 then
- AppDetails("Nicholas FileManager")
- if t == 2 then
- if t == 3 then
- if t == 4 then
- if t == 5 then
- if t == 6 then
- if t == 7 then
- if t == 8 then
- AppStoreMenu()
- end
- end
- function Library()
- end
- function StoreNews()
- end
- function AppDetails(App)
- term.clear
- term.setCursorPos(1,1)
- term.write("Press E to exit, A to Download")
- term.setCursorPos(5,3)
- term.write(App)
- term.setCursorPos(1,7)
- if App == "Nicholas FileManager" then
- 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")
- end
- t = read()
- if t == "e" then
- AppStoreMenu
- elseif t == "a" then
- DownloadApp(App)
- end
- end
- function DownloadApp(App)
- if App == "Nicholas FileManager" and (fs.exists("Nicholas_FileManager_SMI.OS")) == false then
- shell.run("pastebin get bWhfkPx3 Nicholas_FileManager_SMI.OS")
- fs.open("Nicholas_FileManagerV1.0.0", "w")
- fs.write("App Version 1.0.0,Downloaded by Appstore")
- fs.close
- end
- end
- AppStoreMenu()
Advertisement
Add Comment
Please, Sign In to add comment