Add closebutton:SetAutoPosition and closebutton:GetAutoPosition

This commit is contained in:
Kenny Shields 2014-01-24 22:50:13 -05:00
parent 5156ca3ca5
commit 96726ef447

View File

@ -158,4 +158,26 @@ 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