toggleable fullscreen button
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user