Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
ElvUI_RayUI
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fgprodigal
ElvUI_RayUI
Commits
0057652e
Commit
0057652e
authored
Oct 17, 2020
by
fgprodigal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add the Aura Styling on UFs and NPs
parent
76f7543d
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
26 additions
and
7 deletions
+26
-7
Modules/Load_Modules.xml
Modules/Load_Modules.xml
+1
-1
Modules/Nameplates/Elements/Auras.lua
Modules/Nameplates/Elements/Auras.lua
+14
-0
Modules/Nameplates/Elements/Load_Elements.xml
Modules/Nameplates/Elements/Load_Elements.xml
+3
-0
Modules/Nameplates/Load_Nameplates.xml
Modules/Nameplates/Load_Nameplates.xml
+1
-0
Modules/Nameplates/Nameplates.lua
Modules/Nameplates/Nameplates.lua
+2
-0
Modules/Unitframes/Elements/Auras.lua
Modules/Unitframes/Elements/Auras.lua
+5
-6
No files found.
Modules/Load_Modules.xml
View file @
0057652e
<Ui
xmlns=
"http://www.blizzard.com/wow/ui/"
>
<Ui
xmlns=
"http://www.blizzard.com/wow/ui/"
>
<Include
file=
"Nameplates\Load_Nameplates.xml"
/>
<Include
file=
"Unitframes\Load_Unitframes.xml"
/>
<Include
file=
"Unitframes\Load_Unitframes.xml"
/>
<Include
file=
"Nameplates\Load_Nameplates.xml"
/>
<Include
file=
"Tooltip\Load_Tooltip.xml"
/>
<Include
file=
"Tooltip\Load_Tooltip.xml"
/>
<Include
file=
"Misc\Load_Misc.xml"
/>
<Include
file=
"Misc\Load_Misc.xml"
/>
<Include
file=
"Skins\Load_Skins.xml"
/>
<Include
file=
"Skins\Load_Skins.xml"
/>
...
...
Modules/Nameplates/Elements/Auras.lua
0 → 100644
View file @
0057652e
local
RayUI
,
E
,
_
,
V
,
P
,
G
=
unpack
(
select
(
2
,
...
))
local
RNP
=
RayUI
:
GetModule
(
'RayUINamePlates'
)
local
RUF
=
RayUI
:
GetModule
(
'RayUIUnitframes'
)
local
NP
=
E
.
NamePlates
local
_G
,
unpack
,
pairs
,
hooksecurefunc
=
_G
,
unpack
,
pairs
,
hooksecurefunc
function
RNP
:
Construct_Auras
(
nameplate
)
hooksecurefunc
(
nameplate
.
Debuffs
,
"PostUpdateIcon"
,
RUF
.
PostUpdateDebuffs
)
end
function
RNP
:
Load_Auras
()
hooksecurefunc
(
NP
,
"Construct_Auras"
,
self
.
Construct_Auras
)
end
Modules/Nameplates/Elements/Load_Elements.xml
0 → 100644
View file @
0057652e
<Ui
xmlns=
"http://www.blizzard.com/wow/ui/"
>
<Script
file=
'Auras.lua'
/>
</Ui>
Modules/Nameplates/Load_Nameplates.xml
View file @
0057652e
<Ui
xmlns=
"http://www.blizzard.com/wow/ui/"
>
<Ui
xmlns=
"http://www.blizzard.com/wow/ui/"
>
<Script
file=
'Nameplates.lua'
/>
<Script
file=
'Nameplates.lua'
/>
<Include
file=
'Elements\Load_Elements.xml'
/>
</Ui>
</Ui>
Modules/Nameplates/Nameplates.lua
View file @
0057652e
...
@@ -7,6 +7,8 @@ function RNP:Initialize()
...
@@ -7,6 +7,8 @@ function RNP:Initialize()
NP
.
multiplier
=
RayUI
.
multiplier
NP
.
multiplier
=
RayUI
.
multiplier
NP
:
ConfigureAll
()
NP
:
ConfigureAll
()
self
:
Load_Auras
()
end
end
RayUI
:
RegisterModule
(
RNP
:
GetName
())
RayUI
:
RegisterModule
(
RNP
:
GetName
())
\ No newline at end of file
Modules/Unitframes/Elements/Auras.lua
View file @
0057652e
...
@@ -5,14 +5,13 @@ local UF = E.UnitFrames
...
@@ -5,14 +5,13 @@ local UF = E.UnitFrames
local
_G
,
unpack
,
pairs
,
hooksecurefunc
=
_G
,
unpack
,
pairs
,
hooksecurefunc
local
_G
,
unpack
,
pairs
,
hooksecurefunc
=
_G
,
unpack
,
pairs
,
hooksecurefunc
function
RUF
:
PostUpdateDebuffs
(
unit
,
button
)
function
RUF
:
PostUpdateDebuffs
(
unit
,
button
)
if
not
button
.
pixelBorders
then
return
end
button
:
GetParent
().
spacing
=
E
:
Scale
(
4
)
button
:
GetParent
().
spacing
=
E
:
Scale
(
4
)
local
r
,
g
,
b
=
E
:
GetBackdropBorderColor
(
button
)
-- local r, g, b = button.TopLeftCorner:GetVertexColor()
local
br
,
bg
,
bb
=
E
:
GrabColorPickerValues
(
unpack
(
E
.
media
.
unitframeBorderColor
))
if
not
button
.
shadow
then
button
:
CreateShadow
()
end
if
not
button
.
shadow
then
button
:
CreateShadow
()
end
-- button.shadow:SetBackdropBorderColor(r, g, b)
if
button
.
isDebuff
then
if
button
.
isDebuff
then
if
(
not
button
.
isFriend
and
not
button
.
isPlayer
)
then
if
(
not
button
.
isFriend
and
not
button
.
isPlayer
)
then
button
.
shadow
:
SetBackdropBorderColor
(
0
.
9
,
0
.
1
,
0
.
1
)
button
.
shadow
:
SetBackdropBorderColor
(
0
.
9
,
0
.
1
,
0
.
1
)
...
@@ -26,7 +25,7 @@ function RUF:PostUpdateDebuffs(unit, button)
...
@@ -26,7 +25,7 @@ function RUF:PostUpdateDebuffs(unit, button)
end
end
else
else
if
button
.
isStealable
and
not
button
.
isFriend
then
if
button
.
isStealable
and
not
button
.
isFriend
then
button
.
shadow
:
SetBackdropBorderColor
(
0
.
93
,
0
.
91
,
0
.
55
,
1
.
0
)
button
.
shadow
:
SetBackdropBorderColor
(
0
.
93
,
0
.
91
,
0
.
55
)
else
else
button
.
shadow
:
SetBackdropBorderColor
(
unpack
(
E
.
media
.
unitframeBorderColor
))
button
.
shadow
:
SetBackdropBorderColor
(
unpack
(
E
.
media
.
unitframeBorderColor
))
end
end
...
@@ -38,7 +37,7 @@ function RUF:LoadAuras()
...
@@ -38,7 +37,7 @@ function RUF:LoadAuras()
for
_
,
object
in
pairs
(
_G
.
ElvUF
.
objects
)
do
for
_
,
object
in
pairs
(
_G
.
ElvUF
.
objects
)
do
if
object
.
Debuffs
and
object
.
Debuffs
.
PostUpdateIcon
then
if
object
.
Debuffs
and
object
.
Debuffs
.
PostUpdateIcon
then
--
hooksecurefunc(object.Debuffs, "PostUpdateIcon", RUF.PostUpdateDebuffs)
hooksecurefunc
(
object
.
Debuffs
,
"PostUpdateIcon"
,
RUF
.
PostUpdateDebuffs
)
end
end
end
end
end
end
\ No newline at end of file
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