Thread Tools Display Modes
Prev Previous Post   Next Post Next
03-03-10, 10:55 AM   #12
Vrul
A Scalebane Royal Guard
 
Vrul's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2007
Posts: 404
Code:
--StanceBar
local _, class = UnitClass('player')
local width
if class == 'DEATHKNIGHT' then
	width = 114
elseif class == 'DRUID' then
	width = 114
end
if width then
	CreatePanel("aPanels_StanceBar01",0,0,width,31,background,border,"BOTTOMLEFT","TOPLEFT","aPanels_MButtons01",ShapeshiftBarFrame)
	CreatePanel("aPanels_StanceBar02",0,0,width,31,background,border,"BOTTOMLEFT","TOPLEFT","aPanels_MButtons01",ShapeshiftBarFrame)
end
Change the width for each class until it fits the way you want.
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » "If Death Knight"; If Pet Alive...


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