Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Sean Anderson / Shrom
ElvUI
Commits
231c0939
Commit
231c0939
authored
Oct 13, 2020
by
Simpy
🐹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pet battle tooltip skin error
parent
a7fd5bd2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
ElvUI/Modules/Skins/Blizzard/PetBattle.lua
ElvUI/Modules/Skins/Blizzard/PetBattle.lua
+12
-7
No files found.
ElvUI/Modules/Skins/Blizzard/PetBattle.lua
View file @
231c0939
...
...
@@ -37,10 +37,6 @@ end
local
function
SkinPetTooltip
(
tt
)
tt
.
Background
:
SetTexture
()
if
tt
.
Delimiter1
then
tt
.
Delimiter1
:
SetTexture
()
tt
.
Delimiter2
:
SetTexture
()
end
tt
.
BorderTop
:
SetTexture
()
tt
.
BorderTopLeft
:
SetTexture
()
tt
.
BorderTopRight
:
SetTexture
()
...
...
@@ -49,6 +45,14 @@ local function SkinPetTooltip(tt)
tt
.
BorderBottom
:
SetTexture
()
tt
.
BorderBottomRight
:
SetTexture
()
tt
.
BorderBottomLeft
:
SetTexture
()
if
tt
.
Delimiter1
then
tt
.
Delimiter1
:
SetTexture
()
end
if
tt
.
Delimiter2
then
tt
.
Delimiter2
:
SetTexture
()
end
tt
:
CreateBackdrop
(
'Transparent'
)
end
...
...
@@ -244,19 +248,20 @@ function S:PetBattleFrame()
-- TOOLTIPS SKINNING
if
E
.
private
.
skins
.
blizzard
.
tooltip
then
SkinPetTooltip
(
_G
.
BattlePetTooltip
)
SkinPetTooltip
(
_G
.
PetBattlePrimaryAbilityTooltip
)
SkinPetTooltip
(
_G
.
PetBattlePrimaryUnitTooltip
)
SkinPetTooltip
(
_G
.
BattlePetTooltip
)
SkinPetTooltip
(
_G
.
FloatingBattlePetTooltip
)
SkinPetTooltip
(
_G
.
FloatingPetBattleAbilityTooltip
)
-- BATTLEPET RARITY COLOR
hooksecurefunc
(
'BattlePetToolTip_Show'
,
function
(
_
,
_
,
rarity
)
if
not
_G
.
BattlePetTooltip
.
backdrop
then
return
end
local
quality
=
rarity
and
ITEM_QUALITY_COLORS
[
rarity
]
if
quality
and
rarity
>
1
then
_G
.
BattlePetTooltip
:
SetBackdropBorderColor
(
quality
.
r
,
quality
.
g
,
quality
.
b
)
_G
.
BattlePetTooltip
.
backdrop
:
SetBackdropBorderColor
(
quality
.
r
,
quality
.
g
,
quality
.
b
)
else
_G
.
BattlePetTooltip
:
SetBackdropBorderColor
(
unpack
(
E
.
media
.
bordercolor
))
_G
.
BattlePetTooltip
.
backdrop
:
SetBackdropBorderColor
(
unpack
(
E
.
media
.
bordercolor
))
end
end
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment