From 40c65f1b8f5c3b0a9d816034464c2380324d2f0a Mon Sep 17 00:00:00 2001 From: Kenny Shields Date: Sat, 13 Sep 2014 11:57:21 -0400 Subject: [PATCH] Add frame:SetMaxSize and frame:GetMaxSize --- objects/frame.lua | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) 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