View Single Post
02-22-11, 06:12 AM   #1
Lordyfrb
A Cliff Giant
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 71
How to find out how many action bars a players is using?

Hi all,

I'm using rActionbarStyler for my action bars, and have the 3 main action bars stacked above each other. I am trying to create a frame that adds a background for these, but sometimes I have only 2 action bars shown and sometimes 3.

This is the code I'm using to frame 2 bars:
Code:
barbg:SetFrameStrata("BACKGROUND")
barbg:SetPoint("TOPLEFT", ActionButton1, "TOPLEFT", -4, 4)
barbg:SetPoint("BOTTOMRIGHT", MultiBarBottomLeftButton12, "BOTTOMRIGHT", 4, -4)
barbg:SetBackdrop({
	bgFile =  "Interface\\ChatFrame\\ChatFrameBackground", 
	edgeFile =  "Interface\\ChatFrame\\ChatFrameBackground", 
	edgeSize = 1, 
	insets = 1
})
barbg:SetBackdropColor(0, 0, 0,.3)
barbg:SetBackdropBorderColor(0, 0, 0,1)
Now I need a way to find if 3 action bars are been used so I can add an 'if' statement to adjust the frame automagicaly.

So how do I find which action bars are been used?
__________________
  Reply With Quote