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
@@ -17,6 +17,16 @@ pfUI:RegisterModule("player", function ()
pfUI.uf.player:SetPoint("BOTTOMRIGHT", UIParent, "BOTTOM", -75, 125)
pfUI.utils:UpdateMovable(pfUI.uf.player)
pfUI.uf.player:RegisterForClicks('LeftButtonUp', 'RightButtonUp')
pfUI.uf.player:SetScript("OnEnter", function()
GameTooltip_SetDefaultAnchor(GameTooltip, this)
GameTooltip:SetUnit(this.label .. this.id)
GameTooltip:Show()
end)
pfUI.uf.player:SetScript("OnLeave", function()
GameTooltip:FadeOut()
end)
pfUI.uf.player:SetScript("OnClick", function ()
if arg1 == "RightButton" then
ToggleDropDownMenu(1, nil, pfUI.uf.player.Dropdown,"cursor")