Add tooltip:GetFont

This commit is contained in:
Kenny Shields 2014-01-15 10:35:30 -05:00
parent 97e1877fc7
commit d7964547fb
2 changed files with 14 additions and 0 deletions

View File

@ -6,6 +6,7 @@ Version 0.9.7.1 - Alpha (Release Date TBD)
[ADDED] a new tooltip method: GetOffsets() [ADDED] a new tooltip method: GetOffsets()
[ADDED] a new tooltip method: GetFollowCursor() [ADDED] a new tooltip method: GetFollowCursor()
[ADDED] a new tooltip method: GetObject() [ADDED] a new tooltip method: GetObject()
[ADDED] a new tooltip method: GetFont()
[CHANGED] Moved library files to /libraries [CHANGED] Moved library files to /libraries
[CHANGED] Upgraded to middleclass 3.0.1 [CHANGED] Upgraded to middleclass 3.0.1

View File

@ -335,6 +335,19 @@ function newobject:SetFont(font)
end 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) - func: SetFollowObject(bool)
- desc: sets whether or not the tooltip should follow - desc: sets whether or not the tooltip should follow