Rework some globals to aura_env

This commit is contained in:
2024-03-30 19:24:53 +01:00
parent ff03b47444
commit c8af9f84eb
2 changed files with 5 additions and 5 deletions

View File

@@ -5,7 +5,7 @@ function()
if aura_env.config.borderColor then
if subregion.type == "subborder" then
---@type ClassColor
local classColorInfo = ClassColors[aura_env.state.targetClassId]
local classColorInfo = aura_env.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)

View File

@@ -500,13 +500,13 @@ local alerts = {
}
---@type table<string, table<number, Alert>>
EventMap = {}
aura_env.EventMap = {}
for _, alert in ipairs(alerts) do
for event, _ in pairs(alert.events) do
if not EventMap[event] then
EventMap[event] = {}
if not aura_env.EventMap[event] then
aura_env.EventMap[event] = {}
end
EventMap[event][alert.id] = alert
aura_env.EventMap[event][alert.id] = alert
end
end