Skip to content

Commit

Permalink
better
Browse files Browse the repository at this point in the history
  • Loading branch information
kodewdle committed May 7, 2024
1 parent 8464c14 commit 7145f29
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ElvUI/Cata/Modules/Skins/Talent.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,14 @@ local function GlyphFrame_Update()
local talentFrame = _G.PlayerTalentFrame
local talentGroup = talentFrame and talentFrame.talentGroup
if talentGroup then
local l, r, t, b = unpack(E.TexCoords)
for i = 1, _G.NUM_GLYPH_SLOTS do
local glyph = _G['GlyphFrameGlyph'..i]
if glyph and glyph.icon then
local _, _, _, _, iconFilename = _G.GetGlyphSocketInfo(i, talentGroup)
if iconFilename then
glyph.icon:SetTexture(iconFilename)
glyph.icon:SetTexCoord(unpack(E.TexCoords))
glyph.icon:SetTexCoord(l, r, t, b)
else
glyph.icon:SetTexture([[Interface\Spellbook\UI-Glyph-Rune-]]..i)
glyph.icon:SetTexCoord(0, 1, 0, 1)
Expand Down

0 comments on commit 7145f29

Please sign in to comment.