Rework some globals to aura_env
This commit is contained in:
@@ -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)
|
||||
|
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user