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

14 lines
336 B
Plaintext

function gui:getFullSize()
local maxx,maxy=self.width,self.height
local px,py=self.x,self.y
local temp = self:GetAllChildren()
for i=1,#temp do
if temp[i].width+temp[i].x>maxx then
maxx=temp[i].width+temp[i].x
end
if temp[i].height+temp[i].y>maxy then
maxy=temp[i].height+temp[i].y
end
end
return maxx,maxy,px,py
end