Custom State Header
The Custom State Header in Bartender4 allows you to control the paging and the visibility of bars by using any macro conditions supported by WoW.
Syntax
The syntax of the custom conditions is very similar to the syntax of Macros. You can use all conditions supported by the macro system to build a very complex state driver, or a very simple one, whatever suits your needs.
The General Syntax for both state drivers is:
[condition:value]parameters;[more conditions]parameters; fallback-parameters
For a complete list of the supported conditions, see Cogwheels Macro Guide
Be aware that those conditions are parsed Left-to-Right, and the first matching condition is used, so keep the order of your conditions in mind.
The Stance/Paging Header
The state header used for the paging/stances simply uses the number of your target page as the parameter. That is, 1-10 for the target bars/pages, and 0 for "do not page", so use the default page for the specific bar.
Note: Page 11 is a very special case and only used for the possess bar. ([possessbar]11
is the full code for possess bar support)
Examples
Simple State Driver for Druids. Switches to Bar 8 for Prowl, 7 for Cat, 9 for Bear and also supports the Possess Bar, with fallback to its default bar
[possessbar]11;[bonusbar:1,stealth]8;[bonusbar:1]7;[bonusbar:3]9;0
State Driver that switches to Bar2 if you target a friendly target, and stays on its default bar for enemys
[help]2;0
Driver that switches to Bar6 if you hold the ALT key, 7 if you hold CTRL, no paging otherwise
[mod:alt]6;[mod:ctrl]7;0
If you think you wrote a useful state string and want to share it with others, please contact me and i can put it up here.
The Visibility Header
The visibility state driver supports 3 differen parameters. A simple set of show and hide, but additionaly also fade to set the bar to fade-out in the selected state.
Fade Out
By specifying fade as the target you can get the bar to fade out until you place your mouse over it.
By default, it will use the Fade Out Alpha configured in the options, however you can pass another alpha value to the fade target delimited by a colon.
0 would be completely transparent, 100 completely opaque.
Examples
Fade bar out-of-combat, and show it fully in combat:
[combat]show;fade
Hide Bar in every stance except 3, but only show it faded during combat
[nostance:3]hide;[combat]fade;hide
Fade Out with different alpha values
[mod:ctrl]fade:10;[mod:alt]fade:50;[mod:shift]fade:80;show
If you think you wrote a useful state string and want to share it with others, please contact me and i can put it up here.
Is there a way to use strings to attach two bars so that if they only show on hover that both show if one bar is hovered? I would like Bar1 and Bar2 to show when either bar is being hovered...is there any way to accomplish this?
As a long time user of Bartender4 and an avid fan of customizing my interface I was wondering whether Bartender supports bar fade-IN as well as fade-OUT?
I ask mainly from a standpoint of curiosity as I suspect it never was, nor likely to appear at the top of Santa's TOP10 this year...
I've decided to dedicate my 10th and final bar to hold miscellaneous and otherwise OOC non-essentials... To avoid unnecessary clutter as well knowing my own preferences/habits, this is what I ended up going with:
finally i found this. Guys, please, i need your help!
While playing hunter i want my bar1 or any bar that is able to - change on range. While im shooting with bow and im more than 5 yards away from target the main bar should be shown. While im at 1-5 yards close to target bar should change to any other bar where i can have melee abilities. Is this please possible? I remember some addon was doing this back in vanilla/tbc days. But cant find it.