Quantcast WoWInterface - View Single Post - Moving the MainMenuBar
View Single Post
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