diff --git a/objects/internal/closebutton.lua b/objects/internal/closebutton.lua index 1782980..f273943 100644 --- a/objects/internal/closebutton.lua +++ b/objects/internal/closebutton.lua @@ -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 \ No newline at end of file