View Single Post
12-12-11, 07:22 PM   #2
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
I am not sure if setting the OnShow script might not cause a taint problem. It might be better to just reparent them to nUI.BlizUI

It's kind of an edge use-case to change it in nUI5, but I'll be sure to include an option in nUI6 and you can do a simple edit in nUI or use a macro to do it in the meantime.

The edit is very easy... open [ Interface > AddOns > nUI > Bars > nUI_ButtonBar.lua ] and locate the statement "if bar:GetName() == "nUI_ActionBar" then" at line 855 and make the following two highlighted changes...


Code:

if bar:GetName() == "nUI_ActionBar" then
  
        ActionBarUpButton:SetParent( nUI.BlizUI );
        ActionBarUpButton:SetFrameStrata( bar:GetFrameStrata() );
        ActionBarUpButton:SetFrameLevel( bar:GetFrameLevel() );
        ActionBarUpButton:SetScale( 1.5 * nUI.vScale );
        ActionBarUpButton:ClearAllPoints();
        ActionBarUpButton:SetPoint( "TOPLEFT", bar, "TOPRIGHT", -10 * nUI.hScale, 12 * nUI.vScale );
        ActionBarUpButton:Show();
    
        ActionBarDownButton:SetParent( nUI.BlizUI );
        ActionBarDownButton:SetFrameStrata( bar:GetFrameStrata() );
        ActionBarDownButton:SetFrameLevel( bar:GetFrameLevel() );
        ActionBarDownButton:SetScale( 1.5 * nUI.vScale );
        ActionBarDownButton:ClearAllPoints();
        ActionBarDownButton:SetPoint( "BOTTOMLEFT", bar, "BOTTOMRIGHT", -10 * nUI.hScale, -12 * nUI.vScale  );
        ActionBarDownButton:Show();
        
    end
That should do the trick.

If you want to use a macro, just do this...

Code:
/script ActionBarUpButton:SetParent( nUI.BlizUI ); ActionBarDownButton:SetParent( nUI.BlizUI );

__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/