Commit 0057652e authored by fgprodigal's avatar fgprodigal

Add the Aura Styling on UFs and NPs

parent 76f7543d
<Ui xmlns="http://www.blizzard.com/wow/ui/">
<Include file="Nameplates\Load_Nameplates.xml"/>
<Include file="Unitframes\Load_Unitframes.xml"/>
<Include file="Nameplates\Load_Nameplates.xml"/>
<Include file="Tooltip\Load_Tooltip.xml"/>
<Include file="Misc\Load_Misc.xml"/>
<Include file="Skins\Load_Skins.xml"/>
......
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
<Ui xmlns="http://www.blizzard.com/wow/ui/">
<Script file='Auras.lua'/>
</Ui>
<Ui xmlns="http://www.blizzard.com/wow/ui/">
<Script file='Nameplates.lua'/>
<Include file='Elements\Load_Elements.xml'/>
</Ui>
......@@ -7,6 +7,8 @@ function RNP:Initialize()
NP.multiplier = RayUI.multiplier
NP:ConfigureAll()
self:Load_Auras()
end
RayUI:RegisterModule(RNP:GetName())
\ No newline at end of file
......@@ -5,14 +5,13 @@ local UF = E.UnitFrames
local _G, unpack, pairs, hooksecurefunc = _G, unpack, pairs, hooksecurefunc
function RUF:PostUpdateDebuffs(unit, button)
if not button.pixelBorders then return end
button:GetParent().spacing = E:Scale(4)
local r, g, b = E:GetBackdropBorderColor(button)
local br, bg, bb = E:GrabColorPickerValues(unpack(E.media.unitframeBorderColor))
-- local r, g, b = button.TopLeftCorner:GetVertexColor()
if not button.shadow then button:CreateShadow() end
-- button.shadow:SetBackdropBorderColor(r, g, b)
if button.isDebuff then
if(not button.isFriend and not button.isPlayer) then
button.shadow:SetBackdropBorderColor(0.9, 0.1, 0.1)
......@@ -26,7 +25,7 @@ function RUF:PostUpdateDebuffs(unit, button)
end
else
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
button.shadow:SetBackdropBorderColor(unpack(E.media.unitframeBorderColor))
end
......@@ -38,7 +37,7 @@ function RUF:LoadAuras()
for _, object in pairs(_G.ElvUF.objects) do
if object.Debuffs and object.Debuffs.PostUpdateIcon then
-- hooksecurefunc(object.Debuffs, "PostUpdateIcon", RUF.PostUpdateDebuffs)
hooksecurefunc(object.Debuffs, "PostUpdateIcon", RUF.PostUpdateDebuffs)
end
end
end
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment