Quantcast
Different "sticky" actionbars possible? (info inside) - WoWInterface
Thread Tools Display Modes
08-18-08, 05:11 AM   #1
Graloth
Premium Member
 
Graloth's Avatar
Join Date: Dec 2005
Posts: 15
Different "sticky" actionbars possible? (info inside)

Greetings

This is basically something i would like to work with if its possible, so before i get started, thanks to all who help answer the question

Is it possible to make each button have a background texture that changes depending on how many buttons are stuck to it and what sides they are on?

image examples:


The grey border symbolizes the background and how it should "warp" to surround the buttons that are "stuck" together, aswell as buttons only form a "group" if their sides are stuck together, not corners.

The buttons stuck together on the sides should still be adjustable in the directions following the side that is stuck to the order button, example:

2 buttons are stuck together , left side on right side, the buttons can be moved individually up or down, (using a key modifier here is probably best), once their "movement" reaches so that its only their corners that are stuck, they are nolonger "grouped"

Is all this possible? granted, there should most likely be used some key modifies to control the buttons (ALT, CTRL or SHIFT), but in general, would this be possible?

Once more, thanks in advance for the help.
  Reply With Quote
08-20-08, 04:20 AM   #2
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view addons
Join Date: May 2008
Posts: 199
Yeah, this should be possible and some of the action bar- or display block- addons already use such a "sticky" feature.

There also exist libraries which check if your frame can be stuck to another and handle their positioning. You may consider takting a look at:
- LibStickyFrames-2.0
- Tuller's FlyPaper library, for example found in Dominos
- Bartender3/libs/StickyFrames.lua

Dragging only up and down while grouped could be, as far as I know, a problem, because the Blizzard API handles moving the way that you can move the frame freely and not only in a specific direction.

You'll have to code the background texture-code completely by yourself, but it should be doable. So, I suggest, you start trying
  Reply With Quote
08-20-08, 04:25 AM   #3
Graloth
Premium Member
 
Graloth's Avatar
Join Date: Dec 2005
Posts: 15
I most definately will

Just waiting for blizz to send out more keys, i dont want to start programming something that i might have to change later due to expansion.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Different "sticky" actionbars possible? (info inside)

Thread Tools
Display Modes

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