Rework some globals to aura_env
This commit is contained in:
@@ -5,7 +5,7 @@ function()
|
|||||||
if aura_env.config.borderColor then
|
if aura_env.config.borderColor then
|
||||||
if subregion.type == "subborder" then
|
if subregion.type == "subborder" then
|
||||||
---@type ClassColor
|
---@type ClassColor
|
||||||
local classColorInfo = ClassColors[aura_env.state.targetClassId]
|
local classColorInfo = aura_env.ClassColors[aura_env.state.targetClassId]
|
||||||
if classColorInfo then
|
if classColorInfo then
|
||||||
local color = classColorInfo.color.rgbInt
|
local color = classColorInfo.color.rgbInt
|
||||||
subregion:SetBorderColor(color[1] / 255, color[2] / 255, color[3] / 255, 1)
|
subregion:SetBorderColor(color[1] / 255, color[2] / 255, color[3] / 255, 1)
|
||||||
|
|||||||
@@ -500,13 +500,13 @@ local alerts = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
---@type table<string, table<number, Alert>>
|
---@type table<string, table<number, Alert>>
|
||||||
EventMap = {}
|
aura_env.EventMap = {}
|
||||||
for _, alert in ipairs(alerts) do
|
for _, alert in ipairs(alerts) do
|
||||||
for event, _ in pairs(alert.events) do
|
for event, _ in pairs(alert.events) do
|
||||||
if not EventMap[event] then
|
if not aura_env.EventMap[event] then
|
||||||
EventMap[event] = {}
|
aura_env.EventMap[event] = {}
|
||||||
end
|
end
|
||||||
EventMap[event][alert.id] = alert
|
aura_env.EventMap[event][alert.id] = alert
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user