skin: add Tooltips

This commit is contained in:
2019-03-04 18:35:33 +03:00
committed by shagu
parent 4e90604c49
commit 6a580f198b
4 changed files with 20 additions and 35 deletions
-7
View File
@@ -1,11 +1,4 @@
pfUI:RegisterModule("tooltip", function ()
local alpha = tonumber(C.tooltip.alpha)
CreateBackdrop(GameTooltip, nil, nil, alpha)
-- prevent tooltips from being placed offscreen
GameTooltip:SetClampedToScreen(true)
GameTooltipStatusBar:SetClampedToScreen(true)
if C.tooltip.position == "cursor" then
function _G.GameTooltip_SetDefaultAnchor(tooltip, parent)
tooltip:SetOwner(parent, "ANCHOR_CURSOR")