add wallpaper and mesh routing support

This commit is contained in:
2025-10-22 14:03:07 -07:00
parent 3f578d332f
commit 734587569a
4 changed files with 136 additions and 3 deletions

View File

@@ -66,15 +66,19 @@ end
local function desktop()
local image = nft.load(".wallpaper.nft")
local paint_image = paintutils.loadImage(".wallpaper.nfp")
local w, h = term.getSize()
term.setBackgroundColor(colors.lightGray)
term.setBackgroundColor(colors.white)
term.clear()
term.setCursorPos(1, 1)
term.setTextColor(colors.white)
term.setBackgroundColor(colors.gray)
term.write(" Desktop ")
term.clearLine()
term.write(" "..((_G.windows[#_G.windows] or {name=""}).name or "").." ")
if image then
nft.draw(image,1,1)
elseif paint_image then
paintutils.drawImage(paint_image,1,2)
end
end
local threading = require("libs.threading")