diff --git a/changelog.txt b/changelog.txt index d9f9b2b..5ec5dac 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,9 +2,18 @@ Version 0.9.7 - Alpha (Release Date TBD) ================================================ [ADDED] a new base method: textinput(text) -[ADDED] a new tooltip method: SetOffsetX(xoffset) -[ADDED] a new tooltip method: SetOffsetY(yoffset) -[ADDED] a new tooltip method: GetText() +[ADDED] a new progressbar method: SetText(text) +[ADDED] a new progressbar method: GetText() +[ADDED] a new tabs method: SetButtonAreaX(x) +[ADDED] a new tabs method: GetButtonAreaX() +[ADDED] a new tabs method: SetButtonAreaWidth(width) +[ADDED] a new tabs method: GetButtonAreaWidth() +[ADDED] a new tabs method: SetAutoButtonAreaWidth(bool) +[ADDED] a new tabs method: GetAutoButtonAreaWidth() +[ADDED] a new text method: SetLinksEnabled(enabled) +[ADDED] a new text method: GetLinksEnabled() +[ADDED] a new text method: SetDetectLinks(detect) +[ADDED] a new text method: GetDetectLinks() [ADDED] a new textinput method: Copy() [ADDED] a new textinput method: Paste() [ADDED] a new textinput method: SelectAll() @@ -15,12 +24,9 @@ Version 0.9.7 - Alpha (Release Date TBD) [ADDED] a new textinput method: GetMaskChar() [ADDED] a new textinput method: SetPlaceholderText(text) [ADDED] a new textinput method: GetPlaceholderText() -[ADDED] a new text method: SetLinksEnabled(enabled) -[ADDED] a new text method: GetLinksEnabled() -[ADDED] a new text method: SetDetectLinks(detect) -[ADDED] a new text method: GetDetectLinks() -[ADDED] a new progressbar method: SetText(text) -[ADDED] a new progressbar method: GetText() +[ADDED] a new tooltip method: SetOffsetX(xoffset) +[ADDED] a new tooltip method: SetOffsetY(yoffset) +[ADDED] a new tooltip method: GetText() [ADDED] a new text event callback: OnClickLink(object, text) [ADDED] a new util library function: TableHasValue(table, value) [ADDED] a new util library function: GetHoverObject() diff --git a/objects/tabs.lua b/objects/tabs.lua index b6d1226..498512c 100644 --- a/objects/tabs.lua +++ b/objects/tabs.lua @@ -681,4 +681,66 @@ function newobject:SetTabObject(id, object) children[id] = object end +end + +--[[--------------------------------------------------------- + - func: SetButtonAreaX(x) + - desc: sets the x position of the object's button area +--]]--------------------------------------------------------- +function newobject:SetButtonAreaX(x) + + self.buttonareax = x + +end + +--[[--------------------------------------------------------- + - func: GetButtonAreaX() + - desc: gets the x position of the object's button area +--]]--------------------------------------------------------- +function newobject:GetButtonAreaX() + + return self.buttonareax + +end + +--[[--------------------------------------------------------- + - func: SetButtonAreaWidth(width) + - desc: sets the width of the object's button area +--]]--------------------------------------------------------- +function newobject:SetButtonAreaWidth(width) + + self.buttonareawidth = width + +end + +--[[--------------------------------------------------------- + - func: GetButtonAreaWidth() + - desc: gets the width of the object's button area +--]]--------------------------------------------------------- +function newobject:GetButtonAreaWidth() + + return self.buttonareawidth + +end + +--[[--------------------------------------------------------- + - func: SetAutoButtonAreaWidth(bool) + - desc: sets whether or not the width of the object's + button area should be adjusted automatically +--]]--------------------------------------------------------- +function newobject:SetAutoButtonAreaWidth(bool) + + self.autobuttonareawidth = bool + +end + +--[[--------------------------------------------------------- + - func: GetAutoButtonAreaWidth() + - desc: gets whether or not the width of the object's + button area should be adjusted automatically +--]]--------------------------------------------------------- +function newobject:GetAutoButtonAreaWidth() + + return self.autobuttonareawidth + end \ No newline at end of file