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
4fada3a5
Commit
4fada3a5
authored
Oct 13, 2020
by
Simpy
🐹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix text in a quest
parent
82bae7e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
ElvUI/Modules/Skins/Blizzard/Quest.lua
ElvUI/Modules/Skins/Blizzard/Quest.lua
+11
-7
No files found.
ElvUI/Modules/Skins/Blizzard/Quest.lua
View file @
4fada3a5
...
...
@@ -2,7 +2,7 @@ local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, Private
local
S
=
E
:
GetModule
(
'Skins'
)
local
_G
=
_G
local
gsub
,
type
,
pairs
,
ipairs
,
select
,
unpack
,
strfind
=
gsub
,
type
,
pairs
,
ipairs
,
select
,
unpack
,
strfind
local
gsub
,
pairs
,
ipairs
,
select
,
unpack
,
strfind
=
gsub
,
pairs
,
ipairs
,
select
,
unpack
,
strfind
local
C_QuestLog_GetNextWaypointText
=
C_QuestLog.GetNextWaypointText
local
C_QuestLog_GetSelectedQuest
=
C_QuestLog.GetSelectedQuest
...
...
@@ -220,7 +220,7 @@ function S:BlizzardQuestFrames()
_G
.
QuestInfoRewardsFrame
.
ItemReceiveText
:
SetTextColor
(
1
,
1
,
1
)
-- 9.0 Shadowlands Objective Text Colors
hooksecurefunc
(
'QuestInfo_ShowObjectives'
,
function
()
local
function
handleObjectives
()
local
numObjectives
=
GetNumQuestLeaderBoards
()
local
questID
=
Quest_GetQuestID
()
local
numVisibleObjectives
=
0
...
...
@@ -232,13 +232,14 @@ function S:BlizzardQuestFrames()
objective
:
SetTextColor
(
1
,
.
8
,
.
1
)
end
for
i
=
1
,
numObjectives
do
local
_
,
_
,
finish
ed
=
GetQuestLogLeaderBoard
(
i
)
if
t
ype
~=
'spell'
and
t
ype
~=
'log'
and
numVisibleObjectives
<
_G
.
MAX_OBJECTIVES
then
for
i
=
0
,
numObjectives
do
local
_
,
objectiveType
,
isComplet
ed
=
GetQuestLogLeaderBoard
(
i
)
if
objectiveT
ype
~=
'spell'
and
objectiveT
ype
~=
'log'
and
numVisibleObjectives
<
_G
.
MAX_OBJECTIVES
then
numVisibleObjectives
=
numVisibleObjectives
+
1
local
objective
=
_G
[
'QuestInfoObjective'
..
numVisibleObjectives
]
if
objective
then
if
finish
ed
then
if
isComplet
ed
then
objective
:
SetTextColor
(
1
,
.
8
,
.
1
)
else
objective
:
SetTextColor
(
1
,
1
,
1
)
...
...
@@ -246,7 +247,10 @@ function S:BlizzardQuestFrames()
end
end
end
end
)
end
hooksecurefunc
(
'QuestInfo_ShowObjectives'
,
handleObjectives
)
handleObjectives
()
if
_G
.
QuestInfoRewardsFrame
.
SpellLearnText
then
_G
.
QuestInfoRewardsFrame
.
SpellLearnText
:
SetTextColor
(
1
,
1
,
1
)
...
...
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