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 -1
View File
@@ -22,8 +22,17 @@ pfUI:RegisterModule("target", function ()
pfUI.uf.target:SetHeight(pfUI_config.unitframes.target.height + pfUI_config.unitframes.target.pheight + 2*default_border + pfUI_config.unitframes.target.pspace)
pfUI.uf.target:SetPoint("BOTTOMLEFT", UIParent, "BOTTOM", 75, 125)
pfUI.utils:UpdateMovable(pfUI.uf.target)
pfUI.uf.target:RegisterForClicks('LeftButtonUp', 'RightButtonUp')
pfUI.uf.target:SetScript("OnEnter", function()
GameTooltip_SetDefaultAnchor(GameTooltip, this)
GameTooltip:SetUnit(this.label .. this.id)
GameTooltip:Show()
end)
pfUI.uf.target:SetScript("OnLeave", function()
GameTooltip:FadeOut()
end)
pfUI.uf.target:SetScript("OnClick", function ()
if arg1 == "RightButton" then
ToggleDropDownMenu(1, nil, TargetFrameDropDown, "cursor")