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
3c7de92f
Commit
3c7de92f
authored
Oct 13, 2020
by
Simpy
🐹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix nameplate power bars
parent
231c0939
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
ElvUI/Modules/Nameplates/Elements/Power.lua
ElvUI/Modules/Nameplates/Elements/Power.lua
+3
-7
No files found.
ElvUI/Modules/Nameplates/Elements/Power.lua
View file @
3c7de92f
...
...
@@ -70,12 +70,8 @@ function NP:Power_UpdateColor(_, unit)
if
atlas
then
element
:
SetStatusBarAtlas
(
atlas
)
element
:
SetStatusBarColor
(
1
,
1
,
1
)
else
element
:
SetStatusBarTexture
(
element
.
texture
)
if
b
then
element
:
SetStatusBarColor
(
r
,
g
,
b
)
end
elseif
b
then
element
:
SetStatusBarColor
(
r
,
g
,
b
)
end
if
element
.
bg
and
b
then
element
.
bg
:
SetVertexColor
(
r
*
NP
.
multiplier
,
g
*
NP
.
multiplier
,
b
*
NP
.
multiplier
)
end
...
...
@@ -107,7 +103,6 @@ function NP:Construct_Power(nameplate)
Power
:
SetFrameStrata
(
nameplate
:
GetFrameStrata
())
Power
:
SetFrameLevel
(
5
)
Power
:
CreateBackdrop
(
'Transparent'
)
Power
:
SetStatusBarTexture
(
LSM
:
Fetch
(
'statusbar'
,
NP
.
db
.
statusbar
))
local
clipFrame
=
CreateFrame
(
'Frame'
,
nil
,
Power
)
clipFrame
:
SetClipsChildren
(
true
)
...
...
@@ -135,6 +130,7 @@ function NP:Update_Power(nameplate)
nameplate
:
EnableElement
(
'Power'
)
end
nameplate
.
Power
:
SetStatusBarTexture
(
LSM
:
Fetch
(
'statusbar'
,
NP
.
db
.
statusbar
))
nameplate
.
Power
:
Point
(
'CENTER'
,
nameplate
,
'CENTER'
,
db
.
power
.
xOffset
,
db
.
power
.
yOffset
)
nameplate
:
SetPowerUpdateMethod
(
E
.
global
.
nameplate
.
effectivePower
)
...
...
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