I *think* I have the extra action button sorted out... but, like the vehicle exit button, I crapped out last night before I could test it.
Here's a few snippets of the code (not all of it, or exact, as that gets a bit crazy with all the nUI6isms) I'm using a single button action bar for this...
Code:
local extraButton = CreateFrame( "CheckButton", buttonName, parent, "ExtraActionButtonTemplate" );
local children = { extraButton:GetRegions() };
extraButton:SetAttribute( "action", nil );
extraButton:SetID( 1 );
-- find the decorative art around the button and hide it
for i,child in ipairs( children ) do
if child.GetTexture
then
if child:GetTexture() == "Interface\\UnitPowerBarAlt\\SpellPush-Frame"
then
child:Hide();
end
end
end
extraButton:SetParent( actionBar:GetParent() );
actionBar:SetParent( extraButton );
actionBar:SetScript( "OnShow",
function()
extraButton.style:SetTexture( GetOverrideBarSkin() or DefaultExtraActionStyle );
ActionButton_UpdateUsable( extraButton );
end
);