mirror of
https://github.com/LDDestroier/CC/
synced 2025-06-08 13:54:05 +00:00
Added "windont.useSetVisible"
This commit is contained in:
parent
89b3643404
commit
56b6c01ec1
@ -53,6 +53,7 @@ lval.to_blit[0], lval.to_colors["-"] = "-", 0
|
|||||||
|
|
||||||
local windont = {
|
local windont = {
|
||||||
doClearScreen = false, -- if true, will clear the screen during render
|
doClearScreen = false, -- if true, will clear the screen during render
|
||||||
|
useSetVisible = false, -- if true, sets the base terminal's visibility to false before rendering
|
||||||
default = {
|
default = {
|
||||||
baseTerm = term.current(), -- default base terminal for all windows
|
baseTerm = term.current(), -- default base terminal for all windows
|
||||||
textColor = "0", -- default text color (what " " corresponds to in term.blit's second argument)
|
textColor = "0", -- default text color (what " " corresponds to in term.blit's second argument)
|
||||||
@ -118,6 +119,9 @@ windont.render = function(onlyX1, onlyX2, onlyY, ...)
|
|||||||
if bT == output then
|
if bT == output then
|
||||||
bT = output.meta.baseTerm
|
bT = output.meta.baseTerm
|
||||||
end
|
end
|
||||||
|
if windont.useSetVisible and bT.setVisible then
|
||||||
|
bT.setVisible(false)
|
||||||
|
end
|
||||||
scr_x, scr_y = bT.getSize()
|
scr_x, scr_y = bT.getSize()
|
||||||
-- try entire buffer transformations
|
-- try entire buffer transformations
|
||||||
for i = #windows, 1, -1 do
|
for i = #windows, 1, -1 do
|
||||||
@ -210,6 +214,9 @@ windont.render = function(onlyX1, onlyX2, onlyY, ...)
|
|||||||
AMNT_OF_BLITS = 1 + AMNT_OF_BLITS
|
AMNT_OF_BLITS = 1 + AMNT_OF_BLITS
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
if windont.useSetVisible and bT.setVisible then
|
||||||
|
bT.setVisible(true)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
windont.info.LAST_RENDER_AMOUNT = #windows
|
windont.info.LAST_RENDER_AMOUNT = #windows
|
||||||
|
Loading…
x
Reference in New Issue
Block a user