Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --un = paintutils.loadImage("/.os/1")
- --paintutils.drawImage(un, 1, 1)
- paintutils.drawFilledBox(1, 1, 20, 26, colors.grey)
- term.setCursorPos(3, 2)
- term.write("TAZE PORTALS")
- sleep(5)
- --var
- ms = 0
- msm = 0
- --Desktop drawer
- draw = function() do
- running = 1
- term.clear()
- term.setBackgroundColor( colors.red )
- un3 = paintutils.loadImage("/.os/3")
- paintutils.drawImage(un3, 1, 3)
- paintutils.drawImage(un3, 1, 1)
- un2 = paintutils.loadImage("/.os/2")
- paintutils.drawImage(un2, 2, 2)
- --un = paintutils.loadImage("/.os/1")
- --paintutils.drawImage(un, 1, 16)
- term.setBackgroundColor( colors.lime )
- term.setCursorPos(1, 1)
- term.setBackgroundColor(colors.blue)
- term.clearLine()
- term.setBackgroundColor(colors.lime)
- term.write("start worm")
- term.setBackgroundColor(colors.red)
- term.setCursorPos(1, 15)
- --term.write("Files")
- end
- end
- draw()
- while running == 1 do
- event, button, x, y = os.pullEvent()
- if event == "mouse_click" and button == 1 and x < 6 and y == 1 then
- if msm == 0 then
- un5 = paintutils.loadImage("/.os/5")
- paintutils.drawImage(un5, 1, 2)
- term.setCursorPos(1, 2)
- term.write("files")
- msm = 1
- elseif msm == 1 then
- msm = 0
- draw()
- end
- end
- if event == "mouse_click" and button == 2 then
- if ms == 0 then
- un4 = paintutils.loadImage("/.os/4")
- paintutils.drawImage(un4, x, y)
- term.setBackgroundColor( colors.cyan )
- term.setCursorPos(x, y)
- term.setTextColor(colors.white)
- term.write("menu")
- term.setCursorPos(x, (y+1))
- term.write("op1")
- term.setTextColor(colors.white)
- ms = 1
- elseif ms == 1 then
- ms = 0
- draw()
- end
- end
- if event == "mouse_click" and x < 6 and y == 2 and msm == 1 and button == 1 then
- shell.run("/.os/fm")
- end
- if event == "mouse_click" and x < 13 and x > 7 and button == 1 and y == 1 then
- running = 0
- shell.run("/.os/worm")
- end
- if event == "mouse_click" and x < 6 and y < 15 and y > 19 and button == 1 then
- running = 0
- shell.run("/.os/fm")
- end
- end
- draw()
Advertisement
Add Comment
Please, Sign In to add comment