mirror of
https://github.com/linux-man/LoveFrames.git
synced 2024-11-18 16:04:22 +00:00
Add closebutton:SetAutoPosition and closebutton:GetAutoPosition
This commit is contained in:
parent
5156ca3ca5
commit
96726ef447
@ -159,3 +159,25 @@ function newobject:mousereleased(x, y, button)
|
||||
self.down = false
|
||||
|
||||
end
|
||||
|
||||
--[[---------------------------------------------------------
|
||||
- func: SetAutoPosition(bool)
|
||||
- desc: sets whether or not the object should be
|
||||
positioned automatically
|
||||
--]]---------------------------------------------------------
|
||||
function newobject:SetAutoPosition(bool)
|
||||
|
||||
self.autoposition = bool
|
||||
|
||||
end
|
||||
|
||||
--[[---------------------------------------------------------
|
||||
- func: GetAutoPosition()
|
||||
- desc: gets whether or not the object should be
|
||||
positioned automatically
|
||||
--]]---------------------------------------------------------
|
||||
function newobject:GetAutoPosition()
|
||||
|
||||
return self.autoposition
|
||||
|
||||
end
|
Loading…
Reference in New Issue
Block a user