Skip to content

Commit

Permalink
test 3
Browse files Browse the repository at this point in the history
  • Loading branch information
kodewdle committed Apr 9, 2024
1 parent 39a47a9 commit ac9c212
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions ElvUI/Cata/Modules/Skins/Collectables.lua
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ local function JournalScrollButtons(frame)
icon:SetTexCoord(unpack(E.TexCoords))
icon:CreateBackdrop('Transparent', nil, nil, true)

local savedPetTypeIcon = bu.petTypeIcon and bu.petTypeIcon:GetTexture()
local savedFactionIcon = bu.factionIcon and bu.factionIcon:GetTexture()
local savedPetTypeTexture = bu.petTypeIcon and bu.petTypeIcon:GetTexture()
local savedFactionAtlas = bu.factionIcon and bu.factionIcon:GetAtlas()

bu:StripTextures()
bu:CreateBackdrop('Transparent', nil, nil, true)
Expand Down Expand Up @@ -156,7 +156,7 @@ local function JournalScrollButtons(frame)

if parent == _G.PetJournal then
bu.petList = true
bu.petTypeIcon:SetTexture(savedPetTypeIcon)
bu.petTypeIcon:SetTexture(savedPetTypeTexture)
bu.petTypeIcon:Point('TOPRIGHT', -1, -1)
bu.petTypeIcon:Point('BOTTOMRIGHT', -1, 1)

Expand All @@ -167,7 +167,7 @@ local function JournalScrollButtons(frame)
S:HandleIconBorder(bu.iconBorder, nil, petNameColor)
elseif parent == _G.MountJournal then
bu.mountList = true
bu.factionIcon:SetTexture(savedFactionIcon)
bu.factionIcon:SetAtlas(savedFactionAtlas)
bu.factionIcon:SetDrawLayer('OVERLAY')
bu.factionIcon:Point('TOPRIGHT', -1, -1)
bu.factionIcon:Point('BOTTOMRIGHT', -1, 1)
Expand Down
8 changes: 4 additions & 4 deletions ElvUI/Mainline/Modules/Skins/Collectables.lua
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ local function JournalScrollButtons(frame)
icon:SetTexCoord(unpack(E.TexCoords))
icon:CreateBackdrop('Transparent', nil, nil, true)

local savedPetTypeIcon = bu.petTypeIcon and bu.petTypeIcon:GetTexture()
local savedFactionIcon = bu.factionIcon and bu.factionIcon:GetTexture()
local savedPetTypeTexture = bu.petTypeIcon and bu.petTypeIcon:GetTexture()
local savedFactionAtlas = bu.factionIcon and bu.factionIcon:GetAtlas()

bu:StripTextures()
bu:CreateBackdrop('Transparent', nil, nil, true)
Expand Down Expand Up @@ -158,7 +158,7 @@ local function JournalScrollButtons(frame)

if parent == _G.PetJournal then
bu.petList = true
bu.petTypeIcon:SetTexture(savedPetTypeIcon)
bu.petTypeIcon:SetTexture(savedPetTypeTexture)
bu.petTypeIcon:Point('TOPRIGHT', -1, -1)
bu.petTypeIcon:Point('BOTTOMRIGHT', -1, 1)

Expand All @@ -169,7 +169,7 @@ local function JournalScrollButtons(frame)
S:HandleIconBorder(bu.iconBorder, nil, petNameColor)
elseif parent == _G.MountJournal then
bu.mountList = true
bu.factionIcon:SetTexture(savedFactionIcon)
bu.factionIcon:SetAtlas(savedFactionAtlas)
bu.factionIcon:SetDrawLayer('OVERLAY')
bu.factionIcon:Point('TOPRIGHT', -1, -1)
bu.factionIcon:Point('BOTTOMRIGHT', -1, 1)
Expand Down

0 comments on commit ac9c212

Please sign in to comment.