Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
ElvUI Project
ElvUI
Commits
729d3c9c
Commit
729d3c9c
authored
Feb 22, 2019
by
Azilroka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean Spellbook
parent
d9ebc61b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
62 deletions
+22
-62
ElvUI/Modules/skins/blizzard/spellbook.lua
ElvUI/Modules/skins/blizzard/spellbook.lua
+21
-62
ElvUI/Modules/skins/skins.lua
ElvUI/Modules/skins/skins.lua
+1
-0
No files found.
ElvUI/Modules/skins/blizzard/spellbook.lua
View file @
729d3c9c
...
...
@@ -128,76 +128,35 @@ local function LoadSkin()
end
)
--Profession Tab
local
professionbuttons
=
{
"PrimaryProfession1SpellButtonTop"
,
"PrimaryProfession1SpellButtonBottom"
,
"PrimaryProfession2SpellButtonTop"
,
"PrimaryProfession2SpellButtonBottom"
,
"SecondaryProfession1SpellButtonLeft"
,
"SecondaryProfession1SpellButtonRight"
,
"SecondaryProfession2SpellButtonLeft"
,
"SecondaryProfession2SpellButtonRight"
,
"SecondaryProfession3SpellButtonLeft"
,
"SecondaryProfession3SpellButtonRight"
,
}
local
professionheaders
=
{
"PrimaryProfession1"
,
"PrimaryProfession2"
,
"SecondaryProfession1"
,
"SecondaryProfession2"
,
"SecondaryProfession3"
,
}
for
_
,
header
in
pairs
(
professionheaders
)
do
_G
[
header
..
"Missing"
]:
SetTextColor
(
1
,
1
,
0
)
for
_
,
Frame
in
pairs
({
_G
.
SpellBookProfessionFrame
:
GetChildren
()
})
do
Frame
.
missingHeader
:
SetTextColor
(
1
,
1
,
0
)
if
E
.
private
.
skins
.
parchmentRemover
.
enable
then
_G
[
header
]
.
missingText
:
SetTextColor
(
1
,
1
,
1
)
Frame
.
missingText
:
SetTextColor
(
1
,
1
,
1
)
else
_G
[
header
]
.
missingText
:
SetTextColor
(
0
,
0
,
0
)
Frame
.
missingText
:
SetTextColor
(
0
,
0
,
0
)
end
end
for
_
,
button
in
pairs
(
professionbuttons
)
do
button
=
_G
[
button
]
button
:
StripTextures
()
button
:
SetTemplate
(
"Transparent"
)
button
.
iconTexture
:
SetTexCoord
(
unpack
(
E
.
TexCoords
))
button
.
iconTexture
:
SetInside
()
button
.
highlightTexture
:
SetInside
()
if
button
==
_G
[
professionbuttons
[
2
]]
then
button
:
Point
(
"TOPLEFT"
,
_G
[
professionbuttons
[
1
]],
"BOTTOMLEFT"
,
0
,
-
2
)
elseif
button
==
_G
[
professionbuttons
[
4
]]
then
button
:
Point
(
"TOPLEFT"
,
_G
[
professionbuttons
[
3
]],
"BOTTOMLEFT"
,
0
,
-
2
)
S
:
HandleStatusBar
(
Frame
.
statusBar
,
{
0
,
.
86
,
0
})
Frame
.
statusBar
.
rankText
:
SetPoint
(
"CENTER"
)
if
Frame
.
icon
then
Frame
.
professionName
:
SetPoint
(
"TOPLEFT"
,
100
,
-
4
)
Frame
:
StripTextures
()
S
:
HandleIcon
(
Frame
.
icon
,
true
)
Frame
.
icon
:
SetAlpha
(
1
)
Frame
.
icon
:
SetDesaturated
(
false
)
end
hooksecurefunc
(
button
.
highlightTexture
,
"SetTexture"
,
function
(
self
,
texture
)
if
texture
==
"Interface\\Buttons\\ButtonHilight-Square"
then
self
:
SetColorTexture
(
1
,
1
,
1
,
0
.
3
)
end
end
)
end
for
i
=
1
,
2
do
S
:
HandleButton
(
Frame
[
'button'
..
i
],
true
)
--Frame['button'..i]:StyleButton()
local
professionstatusbars
=
{
"PrimaryProfession1StatusBar"
,
"PrimaryProfession2StatusBar"
,
"SecondaryProfession1StatusBar"
,
"SecondaryProfession2StatusBar"
,
"SecondaryProfession3StatusBar"
,
}
for
_
,
statusbar
in
pairs
(
professionstatusbars
)
do
statusbar
=
_G
[
statusbar
]
statusbar
:
StripTextures
()
statusbar
:
SetStatusBarTexture
(
E
.
media
.
normTex
)
E
:
RegisterStatusBar
(
statusbar
)
statusbar
:
SetStatusBarColor
(
0
,
220
/
255
,
0
)
statusbar
:
CreateBackdrop
()
statusbar
.
rankText
:
ClearAllPoints
()
statusbar
.
rankText
:
Point
(
"CENTER"
)
if
Frame
[
'button'
..
i
].
iconTexture
then
S
:
HandleIcon
(
Frame
[
'button'
..
i
].
iconTexture
)
Frame
[
'button'
..
i
].
iconTexture
:
SetInside
()
end
end
end
--Bottom Tabs
...
...
ElvUI/Modules/skins/skins.lua
View file @
729d3c9c
...
...
@@ -464,6 +464,7 @@ function S:HandleDropDownBox(frame, width)
end
function
S
:
HandleStatusBar
(
frame
,
color
)
frame
:
StripTextures
()
frame
:
CreateBackdrop
(
'Transparent'
)
frame
.
backdrop
:
SetFrameLevel
(
frame
:
GetFrameLevel
())
frame
:
SetStatusBarTexture
(
E
.
media
.
normTex
)
...
...
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