Verified Commit bb1252c4 authored by Repooc's avatar Repooc

WIP and wasnt suppose to make it in the commit lol

parent d00f2b7c
......@@ -39,17 +39,6 @@ BI.equipmentmanager = {
},
}
BI.currentSets = {
-- ['1'] = { --setID
-- name = 'some set',
-- iconFileID = 123456,
-- isEquipped = false,
-- numItems = 1,
-- numEquipped = false,
-- numInInventory = 1,
-- },
}
local function ConstructBagIcons()
for _, f in pairs(B.BagFrames) do
for _, bagID in next, f.BagIDs do
......@@ -154,27 +143,6 @@ hooksecurefunc(B, 'OnEvent', function(frame, event, ...)
BI:OnEventHook(frame, event, ...)
end)
function BI:PLAYER_ENTERING_WORLD(initLogin)
if not initLogin then return end
local setIDs = C_EquipmentSet_GetEquipmentSetIDs()
for id in next, setIDs do
local name, iconFileID, setID, isEquipped, numItems, numEquipped, numInInventory, numLost, numIgnored = C_EquipmentSet_GetEquipmentSetInfo(id)
BI.currentSets[id] = { -- ['1'] = { --setID
name = name,
iconFileID = iconFileID,
setID = setID,
isEquipped = isEquipped,
numItems = numItems,
numEquipped = numEquipped,
numInInventory = numInInventory,
numLost = numLost,
numIgnored = numIgnored,
}
end
end
function BI:ToggleSettings()
if BI.db.enable then
BI:RegisterEvent('EQUIPMENT_SETS_CHANGED', function(event)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment