Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --App Store V1
- --this program is a app store, it gets apps from a pastebin download list on a google doc
- --this program is for Minecraft 1.16.5, CC Tweaked
- local AllowedFeatures = {false,false,false,true}
- local w, h = term.getSize()
- local nOption = 0
- function Clear()
- term.clear()
- term.setCursorPos(1,1)
- end
- function CenterText(y,text)
- local x = math.floor((w - string.len(text)) /2)
- term.setCursorPos(x,y)
- term.clearLine()
- term.write(text)
- end
- function StoreMenu()
- Clear()
- print("StoreMenu")
- CenterText(3,"1 - Browse")
- CenterText(4,"2 - Profile")
- CenterText(5,"3 - <Empty>")
- CenterText(6,"4 - Exit")
- nOption = 1
- while true do
- local event, key = os.pullEvent("key")
- if key == keys.one and AllowedFeatures[1] == true then
- nOption = 1
- break
- elseif key == keys.two AllowedFeatures[2] == true then
- nOption = 2
- break
- elseif key == keys.three AllowedFeatures[3] == true then
- nOption = 3
- elseif key == keys.four AllowedFeatures[4] == true then
- nOption = 4
- break
- end
- end
- if nOption == 1 then
- shell.run("ApertureDL_AppStore_Browser")
- elseif nOption == 2 then
- shell.run("ApertureDL_AppStore_StoreProfile")
- elseif nOption == 3 then
- elseif nOption == 4 then
- shell.run("ApertureOS_Base")
- end
- end
- StoreMenu()
Add Comment
Please, Sign In to add comment