View Single Post
01-09-10, 02:22 AM   #211
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Each line defines a set of conditions, and creates a separate page on the bar. Whenever a condition changes, the list is checked, and the bar changes to the page attached to the first set of conditions that matches the current conditions.

Your example would create one page for "in bear form, with shift pressed", one for "in bear form, with alt pressed", one for "in bear form, with ctrl pressed", and one for "in bear form". Due to the order, if you're in bear form and have both shift and alt pressed, you'll get the first page ("in bear form, with shift pressed").

If you wanted one page for "in bear form, in combat" and one for "in cat form, in combat", and no page shown at any other time, you'd do:

[stance:1, combat]
[stance:3, combat]
[]

The empty set of conditions at the end creates a "default" page that is used when no other set of conditions matches. To effectively hide the bar, you'd simply not add any buttons to the page for that state. You must specify it though, because if no set of conditions matches, Macaroon will default to the first defined state ("in bear form, in combat") which is not what you want.