Quantcast [Help] Writing an actionbar addon with 3x12 and default design - WoWInterface
Thread Tools Display Modes
01-02-19, 04:16 AM   #1
Ansi
An Aku'mai Servant
 
Ansi's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2006
Posts: 32
[Help] Writing an actionbar addon with 3x12 and default design

Hello
I cannot find any actionbar addons that maintains the default Blizzard look and enables the use of 3x12 bars (stacked). User Daarc wrote a small addon to do this, and it seems perfect except for some issues.

First, here's the code:

Lua Code:
  1. local _, actionRight = ...
  2.  
  3. function actionRight()
  4.     for i = 2, 12 do
  5.         local n = "MultiBarRightButton"
  6.         local btn = _G[n..i]
  7.         btn:ClearAllPoints()
  8.         btn:SetPoint("LEFT", n..i - 1, "RIGHT", 6, 0)
  9.     end
  10.  
  11.     MultiBarRight:ClearAllPoints()
  12.     MultiBarRight:SetPoint("TOPLEFT", MainMenuBar, "BOTTOMLEFT", 5, 135)
  13.     MultiBarRight.SetPoint = function() end
  14. end
  15.  
  16. actionRight()

And now the problems. First, here's an image with nothing enabled.



And this is with the addon enabled and all actionbars visible.



Change the bar
What I would like to do it move BottonRightBar on top of BottomLeftBar instead of moving RightBar (side bar) on top of BottomLeftBar. I can't figure out what to change in the code to do this and would like someones help

Scaling issue
The moved bar doesn't follow Blizzards default scaling. With no scaling it fits perfectly on top, but as soon as I begin scaling the moved bar becomes small and doesn't fit (see image 2).

Stance buttons
I would like to attach the stance buttons to the top of BottomLeftBar. As seen in the image it's obscured below the moved bar.

Right Bar 2 (side bar)
As seen in image 2 the second side bar attaches to the mainbar and it looks really weird. Optimally it would just be where it usually is.

--

Appriciate any help here! Or if anyone knows a simple actionbar addon that does the above, let me know...

Thanks in advance!
__________________
twitter.com/ansirox

Last edited by Ansi : 01-02-19 at 04:21 AM.
  Reply With Quote
01-02-19, 10:28 AM   #2
jeffy162
A Pyroguard Emberseer
 
jeffy162's Avatar
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 2,289
Please check your other post.
__________________
Ahhhh, the vagueries of the aging mind. Wait.... What was I saying?


Carbonite <----- GitHub main module (Maps ONLY) download link. The other modules are also available on GitHub.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » [Help] Writing an actionbar addon with 3x12 and default design

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