mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-21 23:26:56 +00:00
967487e283
commit d63057474083aa67fda2aa28ee6301334ffc4fdf Author: Brues <5278969+brues-code@users.noreply.github.com> Date: Mon Jul 6 00:59:17 2026 -0500 Use C_Map.GetMapOverlays instead of hardcoded pfMapOverlayData ClassicAPI's C_Map.GetMapOverlays reads WorldMapOverlay.dbc directly and returns the full overlay list for a zone (explored + unexplored) — the data vanilla's GetMapOverlayInfo withholds. mapreveal now iterates it straight (named fields: textureName/texturePath/width/height/offsets), dropping unpack_hash and the pfMapOverlayData tables entirely. Also fixes the explored-check: it compared the full texture path against GetMapOverlayInfo's bare-name keys, so the magnifying glass never suppressed on explored overlays. Now matches on the bare name. Removes ~870 lines of hand-measured overlay data (base + Turtle). commit ad12c8209a80cd1211fe08e83f7013d24b5efd2d Author: Brues <5278969+brues-code@users.noreply.github.com> Date: Sun Jul 5 23:45:09 2026 -0500 utilize HookScript from ClassicAPI
26 lines
863 B
Lua
26 lines
863 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
|
|
|
|
WorldMapTooltip:HookScript("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)
|
|
tooltip:HookScript("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)
|