Thread Tools Display Modes
08-11-11, 04:28 PM   #1
barbol12
A Cyclonian
 
barbol12's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2010
Posts: 42
question about auto size changing

hello guys, i have a custom stance frame i just put in... and want to make a bg frame for it, that auto changes its size based on the number of stance buttons that are available/shown

for instance, if im on my war... to have a width = to the 3 stance buttons, vs a druid for 5 buttons.. or auto change if i switch to druid spec, balance, to give me 6 buttons, and vice versa for switching back...
  Reply With Quote
08-12-11, 01:37 AM   #2
suicidalkatt
A Rage Talon Dragon Guard
 
suicidalkatt's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 331
Originally Posted by barbol12 View Post
hello guys, i have a custom stance frame i just put in... and want to make a bg frame for it, that auto changes its size based on the number of stance buttons that are available/shown

for instance, if im on my war... to have a width = to the 3 stance buttons, vs a druid for 5 buttons.. or auto change if i switch to druid spec, balance, to give me 6 buttons, and vice versa for switching back...
You can use GetNumShapeshiftForms() to accurately size your frame.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » question about auto size changing


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