Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function desktop()
- term.clear()
- A = paintutils.loadImage(".bg")
- paintutils.drawImage(A,1, 2)
- F = paintutils.loadImage(".bgsleep")
- local evnt, btn, x, y = os.pullEvent("mouse_click")
- --Drawing the startmenu
- if btn == 1 and x >= 1 and x <= 2 and y >= 18 and y <= 19 then
- paintutils.drawFilledBox(1, 6, 20, 17, colors.gray)
- term.setCursorPos(1, 7)
- print("Package Installer")
- term.setCursorPos(1, 9)
- print("Shell")
- local evnt, btn, x, y = os.pullEvent("mouse_click")
- if btn == 1 and x >= 1 and x <= 5 and y == 9 then
- term.setBackgroundColor(colors.black)
- term.clear()
- term.setCursorPos(1, 1)
- shell.run("shell")
- term.clear()
- term.clear()
- else
- term.clear()
- paintutils.drawImage(A,1, 2)
- local evnt, btn, x, y = os.pullEvent("mouse_click")
- --if btn == 1 and
- end
- elseif
- btn == 1 and x == 51 and y == 19 then
- os.shutdown()
- elseif
- btn == 1 and x == 50 and y == 19 then
- paintutils.drawImage(F,1, 2)
- local evnt, btn, x, y = os.pullEvent("mouse_click")
- if btn == 1 then
- term.clear()
- term.setBackgroundColor(colors.black)
- api.desktop()
- end
- else
- api.desktop()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement