Skip to content

Commit ebdfbbf

Browse files
committed
test
1 parent 4040594 commit ebdfbbf

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

ElvUI/Cata/Modules/Skins/Collectables.lua

+8-6
Original file line numberDiff line numberDiff line change
@@ -118,18 +118,20 @@ local function JournalScrollButtons(frame)
118118

119119
for _, bu in next, { frame.ScrollTarget:GetChildren() } do
120120
if not bu.IsSkinned then
121-
bu:StripTextures()
122-
bu:CreateBackdrop('Transparent', nil, nil, true)
123-
bu.backdrop:ClearAllPoints()
124-
bu.backdrop:Point('TOPLEFT', bu, 0, -2)
125-
bu.backdrop:Point('BOTTOMRIGHT', bu, 0, 2)
126-
127121
local icon = bu.icon or bu.Icon
122+
local texture = icon:GetTexture()
128123
icon:Size(40)
129124
icon:Point('LEFT', -43, 0)
130125
icon:SetTexCoord(unpack(E.TexCoords))
131126
icon:CreateBackdrop('Transparent', nil, nil, true)
132127

128+
bu:StripTextures()
129+
bu:CreateBackdrop('Transparent', nil, nil, true)
130+
bu.backdrop:ClearAllPoints()
131+
bu.backdrop:Point('TOPLEFT', bu, 0, -2)
132+
bu.backdrop:Point('BOTTOMRIGHT', bu, 0, 2)
133+
icon:SetTexture(texture) -- restore the texture
134+
133135
bu:HookScript('OnEnter', buttonOnEnter)
134136
bu:HookScript('OnLeave', buttonOnLeave)
135137

ElvUI/Mainline/Modules/Skins/Collectables.lua

+8-6
Original file line numberDiff line numberDiff line change
@@ -120,18 +120,20 @@ local function JournalScrollButtons(frame)
120120

121121
for _, bu in next, { frame.ScrollTarget:GetChildren() } do
122122
if not bu.IsSkinned then
123-
bu:StripTextures()
124-
bu:CreateBackdrop('Transparent', nil, nil, true)
125-
bu.backdrop:ClearAllPoints()
126-
bu.backdrop:Point('TOPLEFT', bu, 0, -2)
127-
bu.backdrop:Point('BOTTOMRIGHT', bu, 0, 2)
128-
129123
local icon = bu.icon or bu.Icon
124+
local texture = icon:GetTexture()
130125
icon:Size(40)
131126
icon:Point('LEFT', -43, 0)
132127
icon:SetTexCoord(unpack(E.TexCoords))
133128
icon:CreateBackdrop('Transparent', nil, nil, true)
134129

130+
bu:StripTextures()
131+
bu:CreateBackdrop('Transparent', nil, nil, true)
132+
bu.backdrop:ClearAllPoints()
133+
bu.backdrop:Point('TOPLEFT', bu, 0, -2)
134+
bu.backdrop:Point('BOTTOMRIGHT', bu, 0, 2)
135+
icon:SetTexture(texture) -- restore the texture
136+
135137
bu:HookScript('OnEnter', buttonOnEnter)
136138
bu:HookScript('OnLeave', buttonOnLeave)
137139

0 commit comments

Comments
 (0)