View Single Post
01-05-10, 10:11 PM   #208
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by Redwood Elf View Post
How do I make a bar respond to the /changeactionbar slash command?
You need to set your bar up to use the [actionbar:N] states, where N is the page number from 1 to 6. There are two ways to do this:

#1 - Check the "Paged Bar" option in the bar config window (right-click on a bar while in config mode). This will add 6 new pages to your bar, one for each actionbar state.

#2 - Check the "Custom" option in the bar config window and specify your own pages. This will allow you to combine pages and effectively have less than 6 states. For example, I have a paged bar with only 3 "actual" pages:
Code:
[actionbar:1] [actionbar:4]
[actionbar:2] [actionbar:5]
[actionbar:3] [actionbar:6]
Edit:
With custom states you can actually combine more conditonals, and could effectively have (for instance) 6 in-combat pages and 6 out-of-combat pages:
Code:
[actionbar:1] [combat]
[actionbar:1]
[actionbar:2] [combat]
[actionbar:2]
[actionbar:3] [combat]
[actionbar:3]
[actionbar:4] [combat]
[actionbar:4]
[actionbar:5] [combat]
[actionbar:5]
[actionbar:6] [combat]
[actionbar:6]
The /changeactionbar command should work as expected even with "combo" pages like the above.

Last edited by Phanx : 01-05-10 at 10:13 PM.