unitframes: add tooltips to missing unitframes

This commit is contained in:
shagu
2016-12-18 20:15:45 +01:00
parent 8490f49c4c
commit 2a02beb308
4 changed files with 39 additions and 1 deletions
+10
View File
@@ -16,6 +16,16 @@ pfUI:RegisterModule("pet", function ()
pfUI.utils:UpdateMovable(pfUI.uf.pet)
pfUI.uf.pet:RegisterForClicks('LeftButtonUp', 'RightButtonUp')
pfUI.uf.pet:SetScript("OnEnter", function()
GameTooltip_SetDefaultAnchor(GameTooltip, this)
GameTooltip:SetUnit(this.label .. this.id)
GameTooltip:Show()
end)
pfUI.uf.pet:SetScript("OnLeave", function()
GameTooltip:FadeOut()
end)
pfUI.uf.pet:SetScript("OnClick", function ()
TargetUnit("pet")
end)