Quantcast Moving the MainMenuBar - WoWInterface
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
08-10-18, 06:51 AM   #1
cokedrivers
A Rage Talon Dragon Guard
 
cokedrivers's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 305
Moving the MainMenuBar

Im trying to put the MainmenuBar on top of my Datapanel but I keep having issues.

This is the code ive been trying to use:
Lua Code:
  1. local AdjustBar = function() end
  2.    
  3.     -- Move the MainMenuBar
  4.     MainMenuBar:SetMovable(true)
  5.     MainMenuBar:SetUserPlaced(true)
  6.     MainMenuBar:ClearAllPoints()
  7.     MainMenuBar:SetPoint("BOTTOM",cDataMainPanel,"TOP",0,-4)
  8.     MainMenuBar.ClearAllPoints = AdjustBar
  9.     MainMenuBar.SetMovable = AdjustBar
  10.     MainMenuBar.SetPoint = AdjustBar
  11.     MainMenuBar.SetUserPlaced = AdjustBar
  12.  
  13.     -- Move the MainMenuBar.
  14.     --MainMenuBar:SetMovable(true)
  15.     --MainMenuBar:SetUserPlaced(true)  
  16.     --MainMenuBar:ClearAllPoints()
  17.     --MainMenuBar:SetPoint("BOTTOM",cDataMainPanel,"TOP",0,-4)
  18.    
  19.     -- Move the OverrideActionBar.
  20.     --OverrideActionBar:ClearAllPoints()
  21.     --OverrideActionBar:SetPoint("BOTTOM",cDataMainPanel,"TOP",0,4)
  22.     --OverrideActionBar.ClearAllPoints = AdjustBar
  23.     --OverrideActionBar.SetPoint = AdjustBar
  24.    
  25.     -- Move the ExtraActionButton.
  26.     ExtraActionButton1:ClearAllPoints()
  27.     ExtraActionButton1:SetPoint("CENTER", MainMenuBar, "TOP", 0, 100)
  28.     ExtraActionButton1.ClearAllPoints = AdjustBar
  29.     ExtraActionButton1.SetPoint = AdjustBar
any help would be great.

If you need to se more here is the whole addon cData

Thanks Coke
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Moving the MainMenuBar

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off