diff --git a/objects/frame.lua b/objects/frame.lua index ad2a412..aaff71d 100644 --- a/objects/frame.lua +++ b/objects/frame.lua @@ -1105,6 +1105,28 @@ function newobject:GetMinSize() end +--[[--------------------------------------------------------- + - func: SetMaxSize(width, height) + - desc: sets the object's maximum size +--]]--------------------------------------------------------- +function newobject:SetMaxSize(width, height) + + self.maxwidth = width + self.maxheight = height + return self + +end + +--[[--------------------------------------------------------- + - func: GetMaxSize() + - desc: gets the object's maximum size +--]]--------------------------------------------------------- +function newobject:GetMaxSize() + + return self.maxwidth, self.maxheight + +end + --[[--------------------------------------------------------- - func: SetAlwaysOnTop(bool) - desc: sets whether or not a frame should always be