Thread Tools Display Modes
03-27-12, 01:04 PM   #1
Kendian
A Molten Giant
 
Kendian's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 614
Flyout Direction

Is there anyway to adjust which way the default flyout buttons...um...flyout?
The call pet button, or the teleport/portal button, is what I mean. No matter where on screen, it always goes up.
__________________
  Reply With Quote
03-27-12, 09:12 PM   #2
jeffy162
A Pyroguard Emberseer
 
jeffy162's Avatar
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 2,364
I know you can do that with Flyoutbutton Custom. Maybe a glance at that addons code might help?
__________________
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.
Carbonite-CLASSIC<----- GitHub link to Carbonite Classic. Thanks to ircdirk for this!
  Reply With Quote
03-28-12, 01:58 AM   #3
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 1,060
Originally Posted by Kendian View Post
No matter where on screen, it always goes up.
This isn't the default behavior. Your actionbar addon should be calling button:SetAttribute("flyoutDirection", "LEFT") or whatever direction based on the position and orientation of the bar the button is on.

You can see here that the blizzard action bars just have default directions for their buttons since they're static.

It would theoretically be possible to hook the function SpellFlyout_Toggle and change the direction based on the position of the button every time it's called, but I can't test it and it's something that seems like it might cause taint. I can't see blizzard letting you change the position of secure action buttons in combat.

This is something that really needs to be set when the button is placed.

Last edited by semlar : 03-28-12 at 02:10 AM.
  Reply With Quote
03-28-12, 02:24 PM   #4
Kendian
A Molten Giant
 
Kendian's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 614
Yep, found it, thanks, you two
__________________
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Flyout Direction


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