Quantcast
WoWInterface: SVN - zz_Actionbuttons - Path Comparison - / Rev 15 and / Rev 16

WoWInterface SVN zz_Actionbuttons

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 15 to Rev 16
    Reverse comparison

Rev 15 → Rev 16

trunk/zz_Actionbuttons/miscbars.lua
8,15 → 8,28
'MainMenuBarBackpackButton',
}
local buttons = {}
 
local function dragAble()
return db['dragAble']
end
 
local function init() -- Bags
db = addon['updateDB'](addon['db']['profile'])
local f = CreateFrame("Frame", name.."BagBar", UIParent)
-- local f = CreateFrame("Frame", name.."BagBar", UIParent)
db['bars'][name.."BagBar"] = db['bars'][name.."BagBar"] or {
['cols'] = 5,
['scale'] = 1,
['points'] = {},
}
db['bars'][name.."BagBar"]['points'] = db['bars'][name.."BagBar"]['points'] or {}
local f = addon['CreateSecureFrame']({['name'] = name.."BagBar", ['db'] = db['bars'][name.."BagBar"]['points'], ['dragAble'] = dragAble,})
f['maxslots'] = 5
f['sbuttons'] = {}
addon['addDrag'](f)
f['sizeButton'] = 36
for i = 1, #bagButtons do
local btn = _G[bagButtons[i]]
if(btn) then
btn:SetSize(f['sizeButton'],f['sizeButton'])
f['sbuttons'][#f['sbuttons'] + 1] = btn
addon['fadeInOut'](btn)
end
26,11 → 39,19
end
local function init2() -- MicroMenu
db = addon['updateDB'](addon['db']['profile'])
local f = _G[name.."MicroMenu"] or CreateFrame("Frame", name.."MicroMenu", UIParent)
db['bars'][name.."MicroMenu"] = db['bars'][name.."MicroMenu"] or {
['cols'] = 12,
['scale'] = 1,
['points'] = {},
}
db['bars'][name.."MicroMenu"]['points'] = db['bars'][name.."MicroMenu"]['points'] or {}
-- local f = _G[name.."MicroMenu"] or CreateFrame("Frame", name.."MicroMenu", UIParent)
local f = addon['CreateSecureFrame']({['name'] = name.."MicroMenu", ['db'] = db['bars'][name.."MicroMenu"]['points'], ['dragAble'] = dragAble,})
f['maxslots'] = #MICRO_BUTTONS
f['sbuttons'] = {}
f['skipMasque'] = true
addon['addDrag'](f)
f['sizeButton'] = 36
-- addon['addDrag'](f)
for _, bname in pairs(MICRO_BUTTONS) do
local btn = _G[bname]
if(btn) then
41,7 → 62,7
end
end
end
addon['applySettings'](name.."MicroMenu",36)
addon['applySettings'](name.."MicroMenu")
addon['fadeInOutHeader'](f)
end
addon['preloads'][#addon['preloads'] + 1] = init