MangaReader/GuiManager/Misc/setVisibility.int
2020-02-10 17:18:21 -05:00

14 lines
227 B
Plaintext

function gui:setVisiblity(val)
self.Visible=val
self.oV=val
doto=self:GetAllChildren()
if val==false then
for i=1,#doto do
doto[i].Visible=val
end
else
for i=1,#doto do
doto[i].Visible=doto[i].oV
end
end
end