mirror of
https://github.com/linux-man/LoveFrames.git
synced 2024-11-26 05:14:21 +00:00
Add closebutton:SetAutoPosition and closebutton:GetAutoPosition
This commit is contained in:
parent
5156ca3ca5
commit
96726ef447
@ -158,4 +158,26 @@ function newobject:mousereleased(x, y, button)
|
|||||||
|
|
||||||
self.down = false
|
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
|
end
|
Loading…
Reference in New Issue
Block a user