View Single Post
05-23-10, 07:59 AM   #7
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
Found it.

I'm going to want to wait a day or two before I put out a fix for it in case I need to put out a fix to go with the new HUD function. So, in the interim, if you want to fix the problem, you can edit the file [ Interface > AddOns > nUI > Bars > nUI_MicroMenu.lua ] with any plain text editor and replace the nUI_MicroMenu.applyAnchor method with the following code block...

Code:
nUI_MicroMenu.applyAnchor = function( anchor )
    
    if anchor or nUI_MicroMenu.anchor then
        
        local anchor      = anchor or nUI_MicroMenu.anchor;
        local xOfs        = (anchor.xOfs or 0) * nUI.hScale;
        local yOfs        = (anchor.yOfs or 0) * nUI.vScale;
        local anchor_pt   = anchor.anchor_pt or "CENTER";
        local relative_to = anchor.relative_to or nUI_MicroMenu:GetParent() or UIParent;
        local relative_pt = anchor.relative_pt or anchor_pt;
    
        nUI_MicroMenu.anchor = anchor;
        
        if nUI_MicroMenu.anchor_pt   ~= anchor.anchor_pt
        or nUI_MicroMenu.relative_to ~= anchor.relative_to
        or nUI_MicroMenu.relative_pt ~= anchor.relative_pt
        or nUI_MicroMenu.xOfs        ~= xOfs
        or nUI_MicroMenu.yOfs        ~= yOfs
        then
        
            nUI_MicroMenu.anchor_pt   = anchor.anchor_pt;
            nUI_MicroMenu.relative_to = anchor.relative_to;
            nUI_MicroMenu.realtive_pt = anchor.relative_pt;
            nUI_MicroMenu.xOfs        = xOfs;
            nUI_MicroMenu.yOfs        = yOfs;

            if nUI_MoverFrames[nUI_MicroMenu] then 
                nUI_MoverFrames[nUI_MicroMenu].ClearAllPoints( nUI_MicroMenu );
                nUI_MoverFrames[nUI_MicroMenu].SetPoint( nUI_MicroMenu, anchor_pt, relative_to, relative_pt, xOfs, yOfs );            
                
            else 
                nUI_MicroMenu:ClearAllPoints();
                nUI_MicroMenu:SetPoint( anchor_pt, relative_to, relative_pt, xOfs, yOfs );
            end
            
        end    
    end
end
__________________

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/