This commit is contained in:
2025-01-04 19:05:46 +01:00
parent b7eb0b1cdf
commit 94408916e0

View File

@@ -1,5 +1,20 @@
local ADDON_LOADED, shared = ...
local typeMap = {
spell = "S",
item = "I",
macro = "M",
companion = "C",
equipmentset = "E"
}
local inverseTypeMap = {
S = "spell",
I = "item",
M = "macro",
C = "companion",
E = "equipmentset"
}
local function PickupEquipmentSet(setName)
local setIndex = 0
@@ -180,7 +195,7 @@ end
function ListSets()
local sets = {}
for setName, foo in pairs(ActionBarSaverReloaded.sets) do
table.insert(sets, setName)
sets[#sets + 1] = setName
end
table.sort(sets)
local setsStr = table.concat(sets, ", ")
@@ -212,12 +227,8 @@ function AliasSpell(args)
end
end
table.insert(aliases, aliasID)
table.insert(aliases, aliasID)
ActionBarSaverReloaded.spellAliases[spellID] = aliases
print(string.format("Added %d as an alias for %d", aliasID, spellID))
table.insert(ActionBarSaverReloaded.spellAliases[spellID], aliasID)
print(string.format("Added %d as an alias for %d", aliasID, spellID))
end
function DeleteSpellAliases(spellID)