small changes \j

This commit is contained in:
2025-10-23 21:26:17 -07:00
parent dcfd1acbd2
commit bfe8bddf37
5 changed files with 279 additions and 8 deletions

View File

@@ -52,7 +52,7 @@ end
local function clamp(v, lo, hi) return (v < lo) and lo or ((v > hi) and hi or v) end
function lib.create(name, w, h, x, y)
function lib.create(name, w, h, x, y, do_not_add)
local sx,sy = term.getSize()
if not x then x = sx/2-w/2 end
if not y then y = sy/2-h/2 end
@@ -337,8 +337,10 @@ function lib.create(name, w, h, x, y)
-- initialize
t.clear()
add(_G.windows, t)
lib.reorder()
if not do_not_add then
add(_G.windows, t)
lib.reorder()
end
return t
end