mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-13 17:00:49 +00:00
tooltip: add option for custom transparency
This commit is contained in:
+17
-16
@@ -60,25 +60,26 @@ pfUI:RegisterModule("skin", function ()
|
||||
end
|
||||
end
|
||||
|
||||
pfUI.api:CreateBackdrop(ShoppingTooltip1)
|
||||
pfUI.api:CreateBackdrop(ShoppingTooltip2)
|
||||
pfUI.api:CreateBackdrop(ItemRefTooltip)
|
||||
local alpha = tonumber(pfUI_config.tooltip.alpha)
|
||||
pfUI.api:CreateBackdrop(ShoppingTooltip1, nil, nil, alpha)
|
||||
pfUI.api:CreateBackdrop(ShoppingTooltip2, nil, nil, alpha)
|
||||
pfUI.api:CreateBackdrop(ItemRefTooltip, nil, nil, alpha)
|
||||
|
||||
ShoppingTooltip1:SetScript("OnShow", function()
|
||||
local a, b, c, d, e = this:GetPoint()
|
||||
local border = tonumber(pfUI_config.appearance.border.default)
|
||||
if d and d == 0 then d = (border*2)+d+1 end
|
||||
this:SetPoint(a, b, c, d, e)
|
||||
end)
|
||||
ShoppingTooltip1:SetScript("OnShow", function()
|
||||
local a, b, c, d, e = this:GetPoint()
|
||||
local border = tonumber(pfUI_config.appearance.border.default)
|
||||
if d and d == 0 then d = (border*2)+d+1 end
|
||||
this:SetPoint(a, b, c, d, e)
|
||||
end)
|
||||
|
||||
ShoppingTooltip2:SetScript("OnShow", function()
|
||||
local a, b, c, d, e = this:GetPoint()
|
||||
local border = tonumber(pfUI_config.appearance.border.default)
|
||||
if not d or d == 0 then d = (border*2)+d+1 end
|
||||
this:SetPoint(a, b, c, d, e)
|
||||
end)
|
||||
ShoppingTooltip2:SetScript("OnShow", function()
|
||||
local a, b, c, d, e = this:GetPoint()
|
||||
local border = tonumber(pfUI_config.appearance.border.default)
|
||||
if not d or d == 0 then d = (border*2)+d+1 end
|
||||
this:SetPoint(a, b, c, d, e)
|
||||
end)
|
||||
|
||||
pfUI.api:CreateBackdrop(TicketStatusFrame)
|
||||
pfUI.api:CreateBackdrop(TicketStatusFrame)
|
||||
TicketStatusFrame:ClearAllPoints()
|
||||
TicketStatusFrame:SetPoint("TOP", 0, -5)
|
||||
function TicketStatusFrame_OnEvent()
|
||||
|
||||
Reference in New Issue
Block a user