I'm again digging into this. Now with flyout buttons.
I've finally managed to set up a flyout button without using the type "action".
Lua Code:
btn:SetAttribute("type", "flyout")
btn:SetAttribute("spell", <flyoutnumber>)
But ... I didn't found a way to support a pick up action for the button.
Right now I'm picking up the button via the flyout id and the PickupSpellBookItem.
Lua Code:
local name = GetFlyoutInfo(value)
local found
local spellName = ""
local i = 1
while true do
local spellName = GetSpellBookItemName(i, BOOKTYPE_SPELL)
if spellName == name then
found = i
break
end
if not spellName then
do break end
end
i = i + 1
end
if found then
PickupSpellBookItem(found, BOOKTYPE_SPELL)
end
But, well ... this is unsecure. Is there really no way to support dragging flyout buttons from the button frame without using "action" and an action id?