while true do
term.clear()
bground = paintutils.loadImage("os8/assets/wbground.nfp")
paintutils.drawImage(bground,1,1)
term.setCursorPos(1,1)
term.setTextColor(colors.black)
term.setBackgroundColor(colors.white)
if fs.exists("os8/assets/appStore.list") == true then fs.delete("os8/assets/appStore.list") end
shell.run("pastebin get y1RAbu4D os8/assets/appStore.list") --#It says it gets the error here
term.clear()
print("APP STORE - APP LIST")
local h = fs.open("os8/assets/appStore.list", "r")
local app1Line1 = h.readLine()
local app1Line2 = h.readLine()
local app1Line3 = h.readLine()
local app2Line1 = h.readLine()
local app2Line2 = h.readLine()
local app2Line3 = h.readLine()
print("App name: "..app1Line1)
print("Made by: "..app1Line2)
print("LAUNCH")
print("")
print("App name: "..app2Line1)
print("Made by: "..app2Line2)
print("LAUNCH")
local event, button, x, y = os.pullEvent("mouse_click")
if button == 1 and x>=1 and x<=6 and y==4 then
local exist = fs.exists("os8/apps/"..app1Line2..".app")
if exist == true then
local tabID = multishell.launch({}, "os8/apps/"..app1Line2..".app")
multishell.setTitle(tabID, app1Line1)
h.close()
multishell.setFocus(tabID)
elseif exist == false then
term.clear()
paintutils.drawImage(bground,1,1)
term.setCursorPos(1,1)
print(app1line1)
print("is not installed. Would you like to install?")
term.setCursorPos(20,9)
print("YES")
term.setCursorPos(20,9)
print("NO")
while true do
local event, button, x, y = os.pullEvent("mouse_click")
if button == 1 and x>=20 and x<=22 and y==9 then
shell.run("pastebin get "..app1Line3.." "..app1Line3)
term.clear()
paintutils.drawImage(bground,1,1)
term.setCursorPos(1,1)
write("D")
sleep(0.1)
write("o")
sleep(0.1)
write("n")
sleep(0.1)
write("e")
sleep(2)
break
end
end
end
end
end
Any suggestions?
Thanks,
- Sam
PS I can list the code for the start screen if needed.