unitframes: add option to show tooltip

This commit is contained in:
shagu
2017-10-18 23:35:08 +02:00
parent c59d920368
commit efb3228d46
3 changed files with 20 additions and 0 deletions
+1
View File
@@ -372,6 +372,7 @@ function pfUI.uf:CreateUnitFrame(unit, id, config, tick)
end)
f:SetScript("OnEnter", function()
if not this.label then return end
if this.config.showtooltip == "0" then return end
GameTooltip_SetDefaultAnchor(GameTooltip, this)
GameTooltip:SetUnit(this.label .. this.id)
GameTooltip:Show()