Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function power()
- gpu.setForeground(0xFFFFFF)
- gpu.setBackground(0x000066)
- term.setCursor(70 - 16, 2)
- io.write(' ')
- term.setCursor(70 - 16, 3)
- io.write(' ')
- term.setCursor(70 - 16, 4)
- io.write(' ')
- term.setCursor(70 - 16, 3)
- io.write('[Перезагрузка]')
- term.setCursor(70 - 16, 4)
- io.write(exit)
- end
- local function interactive()
- local event = require("event")
- local event, adress, x, y, cache = event.pull()
- if x >= 1 and x <= 6 and y == 1 and event == "touch" then
- print("tde-menu<<")
- elseif x >= 70 - 9 and x <= 70 and y == 1 and event == "touch" then
- power()
- end
- end
- local function main()
- print("loading tde-shell")
- gpu.setBackground(0xFFFFFF)
- gpu.setForeground(0x000000)
- gpu.setResolution(70, 19)
- gpu.fill(1, 1, 70, 19, " ")
- paintutils.loadImage("./tde-wallpaper", 20, 4, 0xFFFFFF)
- gpu.setBackground(0xFFFFFF)
- gpu.fill(20, 1, 1, 19, " ")
- gpu.setBackground(0x0033FF)
- gpu.setForeground(0xFFFFCC)
- gpu.fill(1, 1, 6, 1, " ")
- term.setCursor(1, 1)
- io.write(menu)
- term.setCursor(70 - 9, 1)
- io.write(p)
- power()
- end
- if gpu and paintutils then
- print("All work's currectly! thats good.")
- main()
- else
- print("Start tde-desktop first")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement