From d7964547fb3b9fb84a412768ebbd74aa5b8667c3 Mon Sep 17 00:00:00 2001 From: Kenny Shields Date: Wed, 15 Jan 2014 10:35:30 -0500 Subject: [PATCH] Add tooltip:GetFont --- changelog.txt | 1 + objects/internal/tooltip.lua | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/changelog.txt b/changelog.txt index cc89015..847bcb9 100644 --- a/changelog.txt +++ b/changelog.txt @@ -6,6 +6,7 @@ Version 0.9.7.1 - Alpha (Release Date TBD) [ADDED] a new tooltip method: GetOffsets() [ADDED] a new tooltip method: GetFollowCursor() [ADDED] a new tooltip method: GetObject() +[ADDED] a new tooltip method: GetFont() [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 a65a6f4..0cf80eb 100644 --- a/objects/internal/tooltip.lua +++ b/objects/internal/tooltip.lua @@ -335,6 +335,19 @@ function newobject:SetFont(font) end +--[[--------------------------------------------------------- + - func: GetFont() + - desc: gets the tooltip's font +--]]--------------------------------------------------------- +function newobject:GetFont() + + local internals = self.internals + local textobject = internals[1] + + return textobject:GetFont() + +end + --[[--------------------------------------------------------- - func: SetFollowObject(bool) - desc: sets whether or not the tooltip should follow