Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
fxpw committed Apr 5, 2023
1 parent 2a81d65 commit 8d7a773
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions Modules/Blizzard/CharacterFrame_Gems_BG.lua
Original file line number Diff line number Diff line change
Expand Up @@ -511,14 +511,15 @@ local function UpdateLink(frame,link,who)
end

local function HideGemTextures(frame)
for i = 1,3 do
if frame.Gems then
frame.Gems["Gem"..i].texture:SetTexture(nil)
frame.Gems["Gem"..i]:SetScript("OnEnter", nil)
frame.Gems["Gem"..i]:SetScript("OnLeave", nil)
frame.Gems["Gem"..i]:SetScript("OnClick", nil)
end
end
if not frame.Gems then return end

for i = 1, 3 do
local gem = frame.Gems["Gem"..i]
gem.texture:SetTexture(nil)
gem:SetScript("OnEnter", nil)
gem:SetScript("OnLeave", nil)
gem:SetScript("OnClick", nil)
end
end

local function UpdateGems(frame,link,who)
Expand Down

0 comments on commit 8d7a773

Please sign in to comment.