- Framwork update for timeline plugin.

This commit is contained in:
Tercioo
2018-11-23 19:31:40 -02:00
parent 7e0916de63
commit 857ddbbc9e
2 changed files with 24 additions and 14 deletions
+19 -1
View File
@@ -1,5 +1,5 @@
local dversion = 122
local dversion = 123
local major, minor = "DetailsFramework-1.0", dversion
local DF, oldminor = LibStub:NewLibrary (major, minor)
@@ -391,6 +391,24 @@ function DF:SetFontColor (fontString, r, g, b, a)
fontString:SetTextColor (r, g, b, a)
end
function DF:AddClassColorToText (text, class)
if (type (class) ~= "string") then
return DF:RemoveRealName (text)
elseif (class == "UNKNOW" or class == "PET") then
return DF:RemoveRealName (text)
end
local color = RAID_CLASS_COLORS [class]
if (color) then
text = "|c" .. color.colorStr .. DF:RemoveRealName (text) .. "|r"
else
return DF:RemoveRealName (text)
end
return text
end
function DF:GetFontSize (fontString)
local _, size = fontString:GetFont()
return size
+5 -13
View File
File diff suppressed because one or more lines are too long