- Fixed East Asian myriads showing a giganting non formated number in the total bar DPS.

- Added a reset nickname button in the right side of the nickname field.
- Framework and NickTag library updates.
This commit is contained in:
Tercioo
2018-12-03 17:25:35 -02:00
parent 857ddbbc9e
commit 24d5be67d2
8 changed files with 215 additions and 275 deletions
+25
View File
@@ -3378,6 +3378,31 @@ function DF:CreateCoolTip()
end
end
function CoolTip:QuickTooltip (host, ...)
CoolTip:Preset (2)
CoolTip:SetHost (host)
for i = 1, select ("#", ...) do
local line = select (i, ...)
CoolTip:AddLine (line)
end
CoolTip:ShowCooltip()
end
function CoolTip:InjectQuickTooltip (host, ...)
host.CooltipQuickTooltip = {...}
host:HookScript ("OnEnter", function()
CoolTip:QuickTooltip (host, unpack (host.CooltipQuickTooltip))
end)
host:HookScript ("OnLeave", function()
CoolTip:Hide()
end)
end
return CoolTip
end