From 96726ef447fc621c52770c2496cce0941a96507b Mon Sep 17 00:00:00 2001 From: Kenny Shields Date: Fri, 24 Jan 2014 22:50:13 -0500 Subject: [PATCH] Add closebutton:SetAutoPosition and closebutton:GetAutoPosition --- objects/internal/closebutton.lua | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) 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