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,3,2)
- paintutils.drawImage(Image3,3,7)
- paintutils.drawImage(Image4,12,1)
- paintutils.drawImage(Image5,10,0,1)
- term.setTextColor(colors.red)
- term.setCursorPos(4,3)
- print("Worm")
- term.setCursorPos(3,9)
- print("FileManager")
- term.setCursorPos(16,9)
- print("Shutdown")
- term.setCursorPos(12,3)
- print("Movie")
- term.setCursorPos(1,17)
- print("left = normal right = monitor")
- term.setCursorPos(1,1)
- term.setBackgroundColor(colors.black)
- term.setCursorPos(24,5)
- print("Tgl")
- while true do
- local even, button, X, Y = os.pullEvent("mouse_click")
- XY = X..","..Y
- if XY == "4,3" then
- shell.run("worm")
- break
- end
- if XY == "24,5" then
- if fs.exists("tgl") then
- shell.run("tgl")
- else
- shell.run("Tglinstall")
- if XY == "3,9" then
- shell.run("FileManager")
- break
- end
- if XY == "16,9" then
- os.shutdown()
- break
- end
- if XY == "12,3" and button == 1 then
- shell.run("secret/alongtimeago")
- break
- end
- if XY == "12,3" and button == 2 then
- shell.run("monitor",Side,"secret/alongtimeago")
- break
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement