toggleable fullscreen button

This commit is contained in:
2025-10-25 16:10:49 -07:00
parent 06bc628ecf
commit b464270e60
4 changed files with 7 additions and 3 deletions

View File

@@ -99,7 +99,9 @@ local function windows()
term.setCursorPos(x, y - 1)
term.setTextColor(colors.white)
term.setBackgroundColor(colors.blue)
term.write(string.sub("XO " .. win.name .. string.rep(" ", w - #win.name - 3),1,w))
local window_buttons = "X"
if win.fullscreenButton then window_buttons = window_buttons.."O" end
term.write(string.sub(window_buttons.." " .. win.name .. string.rep(" ", w - #win.name -1 -#window_buttons),1,w))
if win.resizable and not win.isFullscreen then
term.setCursorPos(x+w-1,y+h-1)
term.write("\127")