Quantcast WoWInterface - View Single Post - Moving the MainMenuBar
View Single Post
08-11-18, 07:38 AM   #4
cokedrivers
A Rage Talon Dragon Guard
 
cokedrivers's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 305
Originally Posted by Vrul View Post
This is what I use in my personal UI:
Code:
local function SetPosition(frame, ...)
    if type(frame) == 'string' then
        UIPARENT_MANAGED_FRAME_POSITIONS[frame] = nil
        frame = _G[frame]
    end
    if type(frame) == 'table' and type(frame.IsObjectType) == 'function' and frame:IsObjectType('Frame') then
        local name = frame:GetName()
        if name then
            UIPARENT_MANAGED_FRAME_POSITIONS[name] = nil
        end
        frame:SetMovable(true)
        frame:SetUserPlaced(true)
        frame:SetDontSavePosition(true)
        frame.ignoreFramePositionManager = true
        if ... then
            frame:ClearAllPoints()
            frame:SetPoint(...)
        end
        frame:SetMovable(false)
    end
end
Then you just need to do:
Code:
SetPosition(MainMenuBar, "BOTTOM", cDataMainPanel, "TOP", 0, 10)

SetPosition(ExtraActionBarFrame, "CENTER", MainMenuBar, "TOP", 0, 100)
But you didn't say what issues you were having so I don't know if taint was your problem or if the frames were moving on you.
This seesm to work.

The issues I was having is that when ever i would get in or out of a NPC vehicle the bars you just keep scrolling between the OverrideActionBar and the MainMenubar untill i disabled the addon. Maybe ity was because it was during the BFA pre launch or not but your suggestion seems to be working. Thanks again.
  Reply With Quote