@@ -119,18 +119,21 @@ local function JournalScrollButtons(frame)
119
119
for _ , bu in next , { frame .ScrollTarget :GetChildren () } do
120
120
if not bu .IsSkinned then
121
121
local icon = bu .icon or bu .Icon
122
- local texture = icon :GetTexture ()
122
+ local savedIconTexture = icon :GetTexture ()
123
123
icon :Size (40 )
124
124
icon :Point (' LEFT' , - 43 , 0 )
125
125
icon :SetTexCoord (unpack (E .TexCoords ))
126
126
icon :CreateBackdrop (' Transparent' , nil , nil , true )
127
127
128
+ local savedPetTypeIcon = bu .petTypeIcon and bu .petTypeIcon :GetTexture ()
129
+ local savedFactionIcon = bu .factionIcon and bu .factionIcon :GetTexture ()
130
+
128
131
bu :StripTextures ()
129
132
bu :CreateBackdrop (' Transparent' , nil , nil , true )
130
133
bu .backdrop :ClearAllPoints ()
131
134
bu .backdrop :Point (' TOPLEFT' , bu , 0 , - 2 )
132
135
bu .backdrop :Point (' BOTTOMRIGHT' , bu , 0 , 2 )
133
- icon :SetTexture (texture ) -- restore the texture
136
+ icon :SetTexture (savedIconTexture ) -- restore the texture
134
137
135
138
bu :HookScript (' OnEnter' , buttonOnEnter )
136
139
bu :HookScript (' OnLeave' , buttonOnLeave )
@@ -140,7 +143,8 @@ local function JournalScrollButtons(frame)
140
143
bu .ProgressBar :SetVertexColor (0.251 , 0.753 , 0.251 , 1 ) -- 0.0118, 0.247, 0.00392
141
144
end
142
145
143
- if frame :GetParent () == _G .WardrobeCollectionFrame .SetsCollectionFrame then
146
+ local parent = frame :GetParent ()
147
+ if parent == _G .WardrobeCollectionFrame .SetsCollectionFrame then
144
148
bu .Favorite :SetAtlas (' PetJournal-FavoritesIcon' , true )
145
149
bu .Favorite :Point (' TOPLEFT' , bu .Icon , ' TOPLEFT' , - 8 , 8 )
146
150
@@ -150,17 +154,20 @@ local function JournalScrollButtons(frame)
150
154
hooksecurefunc (bu .selectedTexture , ' Show' , selectedTextureShow )
151
155
hooksecurefunc (bu .selectedTexture , ' Hide' , selectedTextureHide )
152
156
153
- if frame : GetParent () == _G .PetJournal then
157
+ if parent == _G .PetJournal then
154
158
bu .petList = true
159
+ bu .petTypeIcon :SetTexture (savedPetTypeIcon )
155
160
bu .petTypeIcon :Point (' TOPRIGHT' , - 1 , - 1 )
156
161
bu .petTypeIcon :Point (' BOTTOMRIGHT' , - 1 , 1 )
157
162
158
163
bu .dragButton .ActiveTexture :SetTexture (E .Media .Textures .White8x8 )
159
164
bu .dragButton .ActiveTexture :SetVertexColor (0.9 , 0.8 , 0.1 , 0.3 )
165
+ bu .dragButton .levelBG :SetTexture ()
160
166
161
167
S :HandleIconBorder (bu .iconBorder , nil , petNameColor )
162
- elseif frame : GetParent () == _G .MountJournal then
168
+ elseif parent == _G .MountJournal then
163
169
bu .mountList = true
170
+ bu .factionIcon :SetTexture (savedFactionIcon )
164
171
bu .factionIcon :SetDrawLayer (' OVERLAY' )
165
172
bu .factionIcon :Point (' TOPRIGHT' , - 1 , - 1 )
166
173
bu .factionIcon :Point (' BOTTOMRIGHT' , - 1 , 1 )
0 commit comments