mirror of
https://github.com/linux-man/LoveFrames.git
synced 2024-11-18 16:04:22 +00:00
Add frame:SetMaxSize and frame:GetMaxSize
This commit is contained in:
parent
078588cc0f
commit
40c65f1b8f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user