Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Desktop
- slc = 0
- tBarC = 8
- tBartC = 1
- backColor = 1
- term.setBackgroundColor(backColor)
- term.clear()
- function titlebar()
- term.setCursorPos(1,1)
- term.setBackgroundColor(tBarC)
- term.setTextColor(tBartC)
- term.clearLine()
- term.setCursorPos(3, 1)
- print("[Begin]")
- end
- function drawDesktop()
- --bground = paintutils.loadImage(".background")
- --paintutils.drawImage(bground, 1, 1)
- titlebar()
- end
- drawDesktop()
- while true do
- local event, X, Y = os.pullEventRaw()
- if slc == 0 then
- if event == "mouse_click" then
- if X >= 2 and X <= 8 and Y == 1 and button == 1 then
- term.clear()
- else
- drawDesktop()
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement