WoWInterface SVN Blessed

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 12 to Rev 13
    Reverse comparison

Rev 12 → Rev 13

Blessed/Blessed.toc
1,8 → 1,8
## Interface: 40200
## Interface: 40300
## Title: Blessed
## Notes: Track Paladin stuff
## Author: Ailae of Emeriss-EU
## Version: 40200.1
## Version: 40200.2
## SavedVariables: BlessedDB
 
Blessed.lua
Blessed/Options.lua
14,6 → 14,7
 
f:SetScript("OnShow", function(self)
db = BlessedDB
local items = {}
 
-- Header
local header = self:CreateFontString(nil, "ARTWORK", "GameFontNormalLarge")
48,16 → 49,23
reset:SetText("Reset spells")
reset:SetWidth(reset:GetTextWidth() * 2)
reset:SetPoint("TOPLEFT", lockTip, "BOTTOMLEFT", 0, -5)
reset:SetScript("OnClick", function()
Blessed:RestoreDefaultSpells()
for i=1,#items do
local item = items[i]
item:SetChecked(db.spells[item.spellId].enabled)
end
end)
 
local items = {}
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))
spell:SetChecked(v.enabled)
spell:SetScript("OnClick", function()
v.enabled = not v.enabled
db.spells[k].enabled = not db.spells[k].enabled
end)
spell.spellId = k
table.insert(items, spell)
end
 
Blessed/Blessed.lua
51,10 → 51,6
enabled = true,
duration = 12,
},
[82327] = { -- Holy Radiance
enabled = true,
duration = 10,
},
[88819] = { -- Daybreak
enabled = false,
duration = 12,