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
Merathilis
ElvUI_MerathilisUI
Commits
fdaebe16
Commit
fdaebe16
authored
Sep 04, 2019
by
Merathilis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated QuestHeaders on the QuestMapFrame skin.
parent
07ba52d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
19 deletions
+26
-19
ElvUI_MerathilisUI/modules/skins/FrameXML/QuestMapFrame.lua
ElvUI_MerathilisUI/modules/skins/FrameXML/QuestMapFrame.lua
+26
-19
No files found.
ElvUI_MerathilisUI/modules/skins/FrameXML/QuestMapFrame.lua
View file @
fdaebe16
...
...
@@ -34,29 +34,37 @@ local function styleQuestMapFrame()
QuestScrollFrame
.
DetailFrame
.
BottomDetail
:
SetAlpha
(
0
)
QuestScrollFrame
.
Contents
.
Separator
:
SetAlpha
(
0
)
for
_
,
header
in
next
,
{
campaignHeader
,
storyHeader
}
do
header
.
Background
:
SetAlpha
(
0
)
header
.
HighlightTexture
:
Hide
()
header
.
Text
:
SetPoint
(
"TOPLEFT"
,
15
,
-
20
)
local
bg
=
MERS
:
CreateBDFrame
(
header
,
.
25
)
bg
:
SetPoint
(
"TOPLEFT"
,
6
,
-
2
)
bg
:
SetPoint
(
"BOTTOMRIGHT"
,
-
6
,
2
)
if
header
==
campaignHeader
then
local
newTex
=
bg
:
CreateTexture
(
nil
,
"OVERLAY"
)
newTex
:
SetPoint
(
"TOPRIGHT"
,
-
15
,
-
3
)
newTex
:
SetSize
(
50
,
50
)
local
questHeader
=
{
QuestScrollFrame
.
Contents
.
WarCampaignHeader
,
QuestScrollFrame
.
Contents
.
StoryHeader
}
for
i
=
1
,
#
questHeader
do
local
frame
=
questHeader
[
i
]
frame
.
HighlightTexture
:
Hide
()
frame
.
Background
:
Hide
()
frame
.
Text
:
SetPoint
(
"TOPLEFT"
,
15
,
-
20
)
frame
:
CreateBackdrop
(
"Transparent"
)
if
i
==
1
then
-- WarCampaignHeader
local
newTex
=
frame
:
CreateTexture
(
nil
,
"OVERLAY"
)
newTex
:
SetPoint
(
"TOPRIGHT"
,
-
15
,
-
7
)
newTex
:
SetSize
(
40
,
40
)
newTex
:
SetBlendMode
(
"ADD"
)
newTex
:
SetAlpha
(
0
)
header
.
newTex
=
newTex
frame
.
newTex
=
newTex
frame
.
backdrop
:
SetPoint
(
"TOPLEFT"
,
6
,
-
5
)
else
-- StoryHeader
frame
.
backdrop
:
SetPoint
(
"TOPLEFT"
,
6
,
-
9
)
end
frame
.
backdrop
:
SetPoint
(
"BOTTOMRIGHT"
,
-
6
,
11
)
header
:
HookScript
(
"OnEnter"
,
function
()
bg
:
SetBackdropColor
(
r
,
g
,
b
,
.
25
)
frame
:
HookScript
(
"OnEnter"
,
function
()
frame
.
backdrop
:
SetBackdropColor
(
r
,
g
,
b
,
.
25
)
end
)
header
:
HookScript
(
"OnLeave"
,
function
()
bg
:
SetBackdropColor
(
0
,
0
,
0
,
.
25
)
frame
:
HookScript
(
"OnLeave"
,
function
()
frame
.
backdrop
:
SetBackdropColor
(
0
,
0
,
0
,
.
25
)
end
)
end
...
...
@@ -77,7 +85,6 @@ local function styleQuestMapFrame()
end
end
-- Scroll frame
hooksecurefunc
(
"QuestLogQuests_Update"
,
function
()
UpdateCampaignHeader
()
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