Cosmetic weakaura changes
This commit is contained in:
28
FreshShit/RaiderlosSA/color.lua
Normal file
28
FreshShit/RaiderlosSA/color.lua
Normal file
@@ -0,0 +1,28 @@
|
||||
function()
|
||||
local target = aura_env.state.target
|
||||
|
||||
for _, subregion in ipairs(aura_env.region.subRegions) do
|
||||
if aura_env.config.borderColor then
|
||||
if subregion.type == "subborder" then
|
||||
---@type ClassColor
|
||||
local classColorInfo = ClassColors[aura_env.state.targetClassId]
|
||||
if classColorInfo then
|
||||
local color = classColorInfo.color.rgbInt
|
||||
subregion:SetBorderColor(color[1] / 255, color[2] / 255, color[3] / 255, 1)
|
||||
end
|
||||
end
|
||||
end
|
||||
if target and target == PlayerName then
|
||||
if aura_env.config.glow then
|
||||
if subregion.type == "subglow" then
|
||||
subregion:SetVisible(true)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
if target and target == PlayerName then
|
||||
return 1, 0, 0, 1
|
||||
end
|
||||
return 0, 0, 1, 1
|
||||
end
|
||||
@@ -11,7 +11,7 @@ function(allstates, e, ...)
|
||||
if eventMap == nil then return end
|
||||
local alert = eventMap[spellId]
|
||||
if alert == nil then return end
|
||||
|
||||
|
||||
alert:Trigger(allstates, ...)
|
||||
return true
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user