mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-30 19:19:59 +00:00
unitframes: add tooltips to missing unitframes
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user