Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Side = "right"
- -- Here begins the Code...
- local Image1 = paintutils.loadImage(".Menu")
- local Image2 = paintutils.loadImage(".Icon1")
- local Image3 = paintutils.loadImage(".Icon2")
- local Image4 = paintutils.loadImage(".Icon3")
- local Image5 = paintutils.loadImage(".Icon4")
- term.clear()
- term.setCursorPos(1,1)
- paintutils.drawImage(Image1,1,1)
- paintutils.drawImage(Image2,1,5)
- paintutils.drawImage(Image3,16,1)
- paintutils.drawImage(Image4,28,1)
- paintutils.drawImage(Image5,27,1)
- term.setTextColor(colors.red)
- term.setCursorPos(3,6)
- print("Worm")
- term.setCursorPos(15,1)
- print("FileManager")
- term.setCursorPos(33,1)
- print("Shutdown")
- term.setCursorPos(27,1)
- print("Movie")
- term.setCursorPos(1,17)
- print("left = normal right = monitor")
- term.setCursorPos(1,1)
- term.setBackgroundColor(colors.black)
- while true do
- local even, button, X, Y = os.pullEvent("mouse_click")
- XY = X..","..Y
- if XY == "3,6" then
- shell.run("worm")
- break
- end
- if XY == "15,1" then
- shell.run("FileManager")
- break
- end
- if XY == "33,1" then
- os.shutdown()
- break
- end
- if XY == "27,1" and button == 1 then
- shell.run("secret/alongtimeago")
- break
- end
- if XY == "27,1" and button == 2 then
- shell.run("monitor",Side,"secret/alongtimeago")
- break
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement