Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.setBackgroundColor(1)
- term.clear()
- function osbar()
- term.setCursorPos(1, 1)
- term.setBackgroundColor(512)
- term.clearLine()
- term.setCursorPos(3, 1)
- print("Apos")
- end
- function desktop()
- background = paintutils.loadImage("Apos/Backgrounds/Homescreen")
- paintutils.drawImage(background, 1, 1)
- osbar()
- end
- desktop()
- while true do
- local event, button, xPos, yPos = os.pullEvent("mouse_click")
- if xPos>=4 and xPos<=7 and yPos>=2 and yPos<=4 then
- shell.run("cd","/")
- shell.run("cd","Apos/Downloads")
- shell.run("CraftingOS")
- end
- local event, button, xPos, yPos = os.pullEvent("mouse_click")
- if xPos>=24 and xPos<=30 and yPos>=17 and yPos<=19 then
- shell.run("cd","/")
- shell.run("cd","Apos/Programs")
- shell.run("Settings")
- end
- local event, button, xPos, yPos = os.pullEvent("mouse_click")
- if xPos>=16 and xPos<=19 and yPos>=17 and yPos<=19 then
- shell.run("cd","/")
- shell.run("cd","Apos/Programs")
- shell.run("Safari")
- end
- local event, button, xPos, yPos = os.pullEvent("mouse_click")
- if xPos>=9 and xPos<=12 and yPos>=17 and yPos<=19 then
- shell.run("chat","host","osx1")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement