mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-22 15:46:56 +00:00
710be52f35
Drop the now-vestigial expansion plumbing.
- Delete modules/thirdparty-tbc.lua + its xml Include
- Strip 10 tbc-tagged CreateConfig calls in modules/gui.lua
- Drop the expansion arg from CreateConfig() signature + the disabled-
entry rendering path that depended on it
- Drop the showdisabled GUI toggle + its default
- Simplify pfUI:RegisterModule / pfUI:RegisterSkin to (name, func) only
- Strip the leading version arg ("vanilla:tbc", etc.) from all 114
Register call sites
- Delete the pfUI.expansion variable
26 lines
865 B
Lua
26 lines
865 B
Lua
pfUI:RegisterSkin("Tooltips", function ()
|
|
local rawborder, border = GetBorderSize()
|
|
local alpha = tonumber(C.tooltip.alpha)
|
|
|
|
for _, tooltip in pairs({GameTooltip, ItemRefTooltip, ShoppingTooltip1, ShoppingTooltip2}) do
|
|
CreateBackdrop(tooltip, nil, nil, alpha)
|
|
CreateBackdropShadow(tooltip)
|
|
end
|
|
|
|
HookScript(WorldMapTooltip, "OnShow", function()
|
|
CreateBackdrop(WorldMapTooltip, nil, nil, alpha)
|
|
CreateBackdropShadow(WorldMapTooltip)
|
|
end)
|
|
|
|
SkinCloseButton(ItemRefCloseButton, ItemRefTooltip.backdrop, -6, -6)
|
|
|
|
for _, tooltip in pairs({ShoppingTooltip1, ShoppingTooltip2}) do
|
|
tooltip:SetClampedToScreen(true)
|
|
HookScript(tooltip, "OnShow", function()
|
|
local a, b, c, x, y = this:GetPoint()
|
|
if not x or x == 0 then x = (border*2) + ( x or 0 ) + 1 end
|
|
if a then this:SetPoint(a, b, c, x, y) end
|
|
end)
|
|
end
|
|
end)
|