Skip to content

Commit a8818ac

Browse files
committed
feat: use norm tex for mdt buttons
1 parent 38c5b56 commit a8818ac

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Modules/Skins/Addons/MythicDungeonTools.lua

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ local function reskinDungeonButton(MDT)
6666
local BUTTON_SIZE = 40
6767

6868
button:ClearAllPoints()
69-
button:SetPoint("TOPLEFT", MDT.main_frame, "TOPLEFT", (idx - 1) * (BUTTON_SIZE + 2) + 2, -2)
69+
button:Point("TOPLEFT", MDT.main_frame, "TOPLEFT", (idx - 1) * (BUTTON_SIZE + 2) + 2, -2)
7070
end
7171
end
7272
end
@@ -90,7 +90,7 @@ local function reskinButtonTexture(texture, alphaTimes)
9090
texture:SetTexCoord(0, 1, 0, 1)
9191
texture:SetInside()
9292

93-
texture:SetTexture(E.media.blankTex)
93+
texture:SetTexture(E.media.normTex)
9494
texture.SetVertexColor_ = texture.SetVertexColor
9595
hooksecurefunc(texture, "SetVertexColor", function(self, r, g, b, a)
9696
self:SetVertexColor_(r, g, b, a * alphaTimes)
@@ -208,13 +208,12 @@ function S:MythicDungeonTools()
208208
end
209209

210210
function S:Ace_MDTPullButton(widget)
211-
F.Developer.DevTool(widget, "Pull Button")
212211
reskinButtonTexture(widget.frame.pickedGlow, 0.5)
213212
reskinButtonTexture(widget.frame.highlight, 0.2)
214213
reskinButtonTexture(widget.background, 0.3)
215214

216215
widget.pullNumber:ClearAllPoints()
217-
widget.pullNumber:SetPoint("CENTER", widget.frame, "LEFT", 12, 1)
216+
widget.pullNumber:Point("CENTER", widget.frame, "LEFT", 12, 1)
218217

219218
hooksecurefunc(widget.frame.pickedGlow, "Show", function()
220219
F.SetFontOutline(widget.pullNumber, F.GetCompatibleFont("Accidental Presidency"), 22)

0 commit comments

Comments
 (0)