Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("advPrint")
- function aloadImage()
- end
- --[[ THIS IS SPARTAA!
- local function wallpaper()
- term.setBackgroundColor(colors.white)
- term.setTextColor(colors.black)
- term.clear()
- term.setCursorPos(1, 1)
- --wallpaper = paintutils.loadImage("tde-wallpaper")
- paintutils.drawImage(wallpaper, 3, 2)
- end
- Don't enable this option, this very bug function!
- ]]
- local function menu()
- term.setBackgroundColor(colors.black)
- term.setTextColor(colors.white)
- advPrint.tout(1, "[S] [Menu]")
- advPrint.tout(18, "[Exit]")
- term.setBackgroundColor(colors.white)
- end
- aloadImage()
- term.setBackgroundColor(colors.white)
- term.setTextColor(colors.black)
- term.clear()
- term.setCursorPos(1, 1)
- wallpaper = paintutils.loadImage("tde-wallpaper")
- paintutils.drawImage(wallpaper, 3, 2)
- while true do
- menu()
- x1, y1, x2, y2 = 1, 18, 6, 18
- local event, button, X, Y = os.pullEventRaw()
- if event == "mouse_click" then
- if X >= 1 and X <= 6 and Y >= 18 and Y <= 18 then
- term.setBackgroundColor(colors.black)
- term.setTextColor(colors.white)
- term.clear()
- advPrint.tout(1, "* * * TDE-DESKTOP * * *")
- print(" Thank's for using!")
- break
- elseif X >= 1 and Y >= 1 and X<= 3 and Y <= 1 then
- shell.run("tde-settings")
- term.setBackgroundColor(colors.white)
- term.setTextColor(colors.black)
- term.clear()
- term.setCursorPos(1, 1)
- paintutils.drawImage(wallpaper, 3, 2)
- menu()
- elseif X>=5 and Y>= 1 and X<= 10 and Y<= 1 then
- shell.run("tde-menu")
- term.setBackgroundColor(colors.white)
- term.setTextColor(colors.black)
- term.clear()
- term.setCursorPos(1, 1)
- paintutils.drawImage(wallpaper, 3, 2)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement