Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- running = true
- dt = paintutils.loadImage("Windows/Images/desktop")
- paintutils.drawImage(dt, 1,1)
- shell.run("Windows/Functions/taskbar")
- term.setBackgroundColor(colors.lightBlue)
- term.setTextColor(colors.black)
- term.setCursorPos(1,17)
- print(" Back ")
- term.setCursorPos(1,16)
- print(" ")
- term.setCursorPos(1,15)
- print("# Guess ")
- term.setCursorPos(1,14)
- print("Recovery ")
- term.setCursorPos(1,13)
- print("Paint ")
- term.setCursorPos(1,12)
- print("Ink ")
- term.setCursorPos(1,1)
- while running do
- event, button, x, y = os.pullEvent("mouse_click")
- if x > 2 and x < 7 and y == 17 and button == 1 then
- running = false
- shell.run("Windows/startMenu")
- elseif
- x < 3 and y > 17 and button == 1 then
- running = false
- shell.run("Windows/Main")
- elseif
- x < 8 and y == 15 and button == 1 then
- running = false
- shell.run("Windows/allPrograms/numberGuess")
- elseif
- x < 9 and y == 14 and button == 1 then
- running = false
- shell.run("Windows/allprograms/Recovery")
- elseif
- x < 6 and y == 13 and button == 1 then
- running = false
- shell.run("Windows/allprograms/Paint")
- elseif x < 6 and y == 12 and button == 1 then
- running = false
- shell.run("Windows/allprograms/ink")
- shell.run("Windows/Main")
- else
- running = false
- shell.run("Windows/Main")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement