mirror of
https://github.com/parnic/LibDogTag-3.0.git
synced 2025-06-16 20:20:14 -05:00
- make the Alpha tag saner.
- add the Outline and ThickOutline tags. They now no longer need to be at the start and you can use if statements and all that fun stuff on them. e.g. [IsPlayer ? Outline]
This commit is contained in:
@ -245,18 +245,15 @@ local function updateFontString(fs)
|
||||
local func = codeToFunction[nsList][kwargTypes][code]
|
||||
DogTag.__isMouseOver = DogTag.__lastMouseover == fsToFrame[fs]
|
||||
call__func, call__kwargs, call__code, call__nsList = func, kwargs, code, nsList
|
||||
local success, ret, alpha = xpcall(call, errorhandler)
|
||||
local success, ret, alpha, outline = xpcall(call, errorhandler)
|
||||
call__func, call__kwargs, call__code, call__nsList = nil, nil, nil, nil
|
||||
if success then
|
||||
fs:SetText(ret)
|
||||
if alpha then
|
||||
if alpha < 0 then
|
||||
alpha = 0
|
||||
elseif alpha > 1 then
|
||||
alpha = 1
|
||||
end
|
||||
fs:SetAlpha(alpha)
|
||||
end
|
||||
local a, b = fs:GetFont()
|
||||
fs:SetFont(a, b, outline or '')
|
||||
end
|
||||
end
|
||||
DogTag.updateFontString = updateFontString
|
||||
@ -363,6 +360,8 @@ function DogTag:RemoveFontString(fs)
|
||||
end
|
||||
|
||||
fs:SetText(nil)
|
||||
local a, b = fs:GetFont()
|
||||
fs:SetFont(a, b, "")
|
||||
end
|
||||
|
||||
function DogTag:AddAddonFinder(namespace, kind, name, func)
|
||||
|
Reference in New Issue
Block a user