for k,v in pairs(db.spells) do |
local n = GetSpellInfo(k) |
local spell = Checkers(k, n, n, "Current duration is |cff00ff00" .. v.duration .. "|r seconds.") |
spell:SetPoint("TOPLEFT", reset, "BOTTOMLEFT", 0, -20 * (#items+1)) |
if (#items < 10) then |
spell:SetPoint("TOPLEFT", reset, "BOTTOMLEFT", 0, -20 * (#items+1)) |
else |
spell:SetPoint("TOPLEFT", reset, "BOTTOMLEFT", 225, -20 * (#items-9)) |
end |
|
spell:SetChecked(v.enabled) |
spell:SetScript("OnClick", function() |
db.spells[k].enabled = not db.spells[k].enabled |