From 8d65bf7f2d677891ca7a03d21bc21e95ce1bd280 Mon Sep 17 00:00:00 2001 From: Kenny Shields Date: Wed, 15 Jan 2014 10:53:53 -0500 Subject: [PATCH] Add tooltip:GetFollowObject --- changelog.txt | 1 + objects/internal/tooltip.lua | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/changelog.txt b/changelog.txt index 847bcb9..f01cf00 100644 --- a/changelog.txt +++ b/changelog.txt @@ -7,6 +7,7 @@ Version 0.9.7.1 - Alpha (Release Date TBD) [ADDED] a new tooltip method: GetFollowCursor() [ADDED] a new tooltip method: GetObject() [ADDED] a new tooltip method: GetFont() +[ADDED] a new tooltip method: GetFollowObject() [CHANGED] Moved library files to /libraries [CHANGED] Upgraded to middleclass 3.0.1 diff --git a/objects/internal/tooltip.lua b/objects/internal/tooltip.lua index 0cf80eb..9481db3 100644 --- a/objects/internal/tooltip.lua +++ b/objects/internal/tooltip.lua @@ -357,4 +357,15 @@ function newobject:SetFollowObject(bool) self.followobject = bool +end + +--[[--------------------------------------------------------- + - func: GetFollowObject() + - desc: gets whether or not the tooltip should follow + its assigned object +--]]--------------------------------------------------------- +function newobject:GetFollowObject() + + return self.followobject + end \ No newline at end of file