From 4caf207d62d253c037ecf3576d56005ef0852dc8 Mon Sep 17 00:00:00 2001 From: Kenny Shields Date: Wed, 15 Jan 2014 10:21:25 -0500 Subject: [PATCH] Add tooltip:GetFollowCursor --- changelog.txt | 1 + objects/internal/tooltip.lua | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/changelog.txt b/changelog.txt index d1c3578..d3993e8 100644 --- a/changelog.txt +++ b/changelog.txt @@ -4,6 +4,7 @@ Version 0.9.7.1 - Alpha (Release Date TBD) [ADDED] a new tooltip method: GetOffsetX() [ADDED] a new tooltip method: GetOffsetY() [ADDED] a new tooltip method: GetOffsets() +[ADDED] a new tooltip method: GetFollowCursor() [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 a7bf067..361fb09 100644 --- a/objects/internal/tooltip.lua +++ b/objects/internal/tooltip.lua @@ -178,6 +178,17 @@ function newobject:SetFollowCursor(bool) end +--[[--------------------------------------------------------- + - func: GetFollowCursor() + - desc: gets whether or not the tooltip should follow the + cursor +--]]--------------------------------------------------------- +function newobject:GetFollowCursor() + + return self.followcursor + +end + --[[--------------------------------------------------------- - func: SetObject(object) - desc: sets the tooltip's object