Cosmetic weakaura changes

This commit is contained in:
2024-03-15 17:18:01 +01:00
parent aa808dbf67
commit c4a4947d4c
2 changed files with 29 additions and 1 deletions

View 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