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
Hekili
ElvUI
Commits
77fe78dc
Commit
77fe78dc
authored
Jun 01, 2019
by
Rubgrsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hide Azerite bar at max level
parent
e5827b44
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
ElvUI/Modules/DataBars/Azerite.lua
ElvUI/Modules/DataBars/Azerite.lua
+2
-1
No files found.
ElvUI/Modules/DataBars/Azerite.lua
View file @
77fe78dc
...
...
@@ -10,6 +10,7 @@ local format = string.format
local
C_AzeriteItem_FindActiveAzeriteItem
=
C_AzeriteItem
.
FindActiveAzeriteItem
local
C_AzeriteItem_GetAzeriteItemXPInfo
=
C_AzeriteItem
.
GetAzeriteItemXPInfo
local
C_AzeriteItem_GetPowerLevel
=
C_AzeriteItem
.
GetPowerLevel
local
C_AzeriteItem_IsAzeriteItemAtMaxLevel
=
C_AzeriteItem
.
IsAzeriteItemAtMaxLevel
local
InCombatLockdown
=
InCombatLockdown
local
CreateFrame
=
CreateFrame
local
ARTIFACT_POWER
=
ARTIFACT_POWER
...
...
@@ -29,7 +30,7 @@ function mod:UpdateAzerite(event, unit)
local
bar
=
self
.
azeriteBar
local
azeriteItemLocation
=
C_AzeriteItem_FindActiveAzeriteItem
()
if
not
azeriteItemLocation
or
(
event
==
"PLAYER_REGEN_DISABLED"
and
self
.
db
.
azerite
.
hideInCombat
)
then
if
not
azeriteItemLocation
or
(
event
==
"PLAYER_REGEN_DISABLED"
and
self
.
db
.
azerite
.
hideInCombat
)
or
C_AzeriteItem_IsAzeriteItemAtMaxLevel
()
then
bar
:
Hide
()
elseif
azeriteItemLocation
and
(
not
self
.
db
.
azerite
.
hideInCombat
or
not
InCombatLockdown
())
then
bar
:
Show
()
...
...
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