- Fix for the title bar encounter timer.

This commit is contained in:
Tercio
2015-09-16 00:51:13 -03:00
parent 8a62868b0e
commit 3eb6f854a9
6 changed files with 26 additions and 15 deletions
+12 -2
View File
@@ -1,5 +1,5 @@
local major, minor = "DetailsFramework-1.0", 9
local major, minor = "DetailsFramework-1.0", 10
local DF, oldminor = LibStub:NewLibrary (major, minor)
if (not DF) then
@@ -8,6 +8,7 @@ if (not DF) then
end
DetailsFrameworkCanLoad = true
local SharedMedia = LibStub:GetLibrary ("LibSharedMedia-3.0")
local _type = type
local _unpack = unpack
@@ -188,6 +189,11 @@ function DF:SetFontSize (fontString, ...)
fontString:SetFont (fonte, max (...), flags)
end
function DF:SetFontFace (fontString, fontface)
local font = SharedMedia:Fetch ("font", fontface, true)
if (font) then
fontface = font
end
local _, size, flags = fontString:GetFont()
fontString:SetFont (fontface, size, flags)
end
@@ -540,7 +546,11 @@ end
local tn = tonumber
function DF:ParseColors (_arg1, _arg2, _arg3, _arg4)
if (_type (_arg1) == "table") then
_arg1, _arg2, _arg3, _arg4 = _unpack (_arg1)
if (not _arg1[1] and _arg1.r) then
_arg1, _arg2, _arg3, _arg4 = _arg1.r, _arg1.g, _arg1.b, _arg1.a
else
_arg1, _arg2, _arg3, _arg4 = _unpack (_arg1)
end
elseif (_type (_arg1) == "string") then