gui/GuiManager/Misc/SquareY.int
Ryan Ward 24915c52a3 Added Squared Sizing
Squared sizing is based on scale. This way you can always have a consistant sized square on different resolutions.
2019-03-22 20:47:00 -04:00

9 lines
189 B
Plaintext

function gui:SquareY(n)
local n = n or 1
local w = self.Parent.height
local rw = w*n
local s = (w-rw)/2
self:setDualDim(nil,nil,rw,rw)
self:Move(s,s)
return self.Parent.height,rw
end