mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-22 07:36:56 +00:00
unitframes: add option to show tooltip
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user