WoWInterface SVN Blessed

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 29 to Rev 30
    Reverse comparison

Rev 29 → Rev 30

trunk/Blessed/Options.lua
64,7 → 64,7
local reset = CreateFrame("Button", string.format("%sReset", addon), f, "OptionsButtonTemplate")
reset:SetText("Reset spells")
reset:SetWidth(reset:GetTextWidth() * 2)
reset:SetPoint("TOPLEFT", lockTip, "BOTTOMLEFT", 0, -5)
reset:SetPoint("TOPLEFT", lockTip, "BOTTOMLEFT", 0, -8)
reset:SetScript("OnClick", function()
Blessed:RestoreDefaultSpells()
for i=1,#items do
75,10 → 75,10
 
for k,v in pairs(db.spells) do
local spell = Checkers(k)
if (#items < 10) then
if (#items < 12) then
spell:SetPoint("TOPLEFT", reset, "BOTTOMLEFT", 0, -20 * (#items+1))
else
spell:SetPoint("TOPLEFT", reset, "BOTTOMLEFT", 225, -20 * (#items-9))
spell:SetPoint("TOPLEFT", reset, "BOTTOMLEFT", 225, -20 * (#items-11))
end
 
spell:SetChecked(v)