Holla everyone
I'm working on my action bar addon an would like to support equipment sets from the Blizz equipment manager.
I've found the following code in SecureHandlers.lua:
Lua Code:
local function PickupAny(kind, target, detail, ...)
if (kind == "clear") then
ClearCursor();
kind, target, detail = target, detail, ...;
end
if kind == 'action' then
PickupAction(target);
elseif kind == 'bag' then
PickupBagFromSlot(target)
elseif kind == 'bagslot' then
PickupContainerItem(target, detail)
elseif kind == 'inventory' then
PickupInventoryItem(target)
elseif kind == 'item' then
PickupItem(target)
elseif kind == 'macro' then
PickupMacro(target)
elseif kind == 'merchant' then
PickupMerchantItem(target)
elseif kind == 'petaction' then
PickupPetAction(target)
elseif kind == 'money' then
PickupPlayerMoney(target)
elseif kind == 'spell' then
PickupSpell(target)
elseif kind == 'companion' then
PickupCompanion(target, detail)
elseif kind == 'equipmentset' then
PickupEquipmentSet(target);
end
end
function SecureHandler_OnDragEvent(self, snippetAttr, button)
local body = self:GetAttribute(snippetAttr);
if (body) then
PickupAny( SecureHandler_Self_Execute(self,
"self,button,kind,value,...",
body, button, GetCursorInfo()) );
end
end
Doesn't that mean that a frame that inherits SecureActionButtonTemplate will support the type 'equipmentset'?
Unfortunatly something like
Lua Code:
frame:SetAttribute("type", "equipmentset")
frame:SetAttribute("equipmentset", "<nameofavalidset>")
does not work.
Does someone know if "equipmentset" actually is a valid value for "type"?