fix frame order some more

- Closes #29
Reintroduces UI scale issues when playing at 1080p pixel-perfect (0.711 scale).
You need to account for this by adjusting the Aura size slightly up or down by a small number, depending on scaling.
We have this anyway across the addon, so it is what it is...
This commit is contained in:
NoM0Re
2025-03-05 21:57:53 +01:00
parent 44e1978284
commit 3ed8d72ea3
2 changed files with 11 additions and 8 deletions
+8 -8
View File
@@ -1153,21 +1153,21 @@ local function create(parent)
region:SetResizable(true);
region:SetMinResize(1, 1);
local fgMask = CreateFrame("Frame", nil, region)
-- Create statusbar (inherit prototype)
local bar = CreateFrame("Frame", nil, region);
WeakAuras.Mixin(bar, Private.SmoothStatusBarMixin);
fgMask:SetAllPoints(bar);
local fgMask = CreateFrame("Frame", nil, bar)
fgMask:SetAllPoints(bar)
-- Now create a bunch of textures
local bg = region:CreateTexture(nil, "BACKGROUND");
bg:SetAllPoints(bar);
local fg = fgMask:CreateTexture(nil, "BORDER");
fg:SetAllPoints(fgMask)
-- Now create a bunch of textures
local bg = region:CreateTexture(nil, "ARTWORK");
bg:SetAllPoints(bar);
local spark = bar:CreateTexture(nil, "ARTWORK");
spark:SetDrawLayer("ARTWORK", 7);
local spark = fgMask:CreateTexture(nil, "ARTWORK");
bar.fg = fg;
bar.fgMask = fgMask
bar.bg = bg;
+3
View File
@@ -37,6 +37,9 @@ do
end
local function subSetFrameLevel(self, level)
if self.parent.fgFrame then
self.parent.fgFrame:SetFrameLevel(level)
end
if self.parent.bar then
self.parent.bar:SetFrameLevel(level)
end