PDA

View Full Version : Addon: Modified SecondBar


DmgInc
12-09-2004, 11:39 PM
NOTE : Using hardcoded height values is bad
Question to Cosmos devs? : Why do you anchor w/the TOPELEFT when you are anchoring to something below?

Anyway thiss SecondBar correctly does the following..

- Anchors the SecondBar in the correct place on the MainMenuBar, this is especially handy if you use my PlayerFrameXPBar

- Correctly Anchors the PetActionFrameBar to the SecondBar should you have a pet, again especially handy if you use my PlayerFrameXPBar

What did I change?

In the toggle where SecondBar:IsVisible() == false;


SHAPESHIFTBAR_YPOS = SecondBar:GetHeight();

--
-- Adjust the pet bar
--

heightAnchor = MainMenuBar:GetHeight();
heightAnchor = heightAnchor + SecondBar:GetHeight();
heightAnchor = heightAnchor + 1 -- Add 1 pixel of space
petActionBar.yTarget = heightAnchor;
petActionBar:ClearAllPoints();
petActionBar:SetPoint("BOTTOMLEFT", petActionBar:GetParent():GetName(), "BOTTOMLEFT", PETACTIONBAR_XPOS, petActionBar.yTarget);



In the toggle where SecondBar:IsVisible() == true;


--
-- Adjust the pet bar
--

heightAnchor = MainMenuBar:GetHeight();
petActionBar.yTarget = heightAnchor;
petActionBar:ClearAllPoints();
petActionBar:SetPoint("BOTTOMLEFT", petActionBar:GetParent():GetName(), "BOTTOMLEFT", PETACTIONBAR_XPOS, petActionBar.yTarget);


Grab it from http://dmginc.homedns.org:81/SecondBar.zip

Chasim
12-10-2004, 12:03 AM
Link doesn't work... /sigh.

DmgInc
12-10-2004, 12:14 AM
Doh. forgot to copy the file into the web folder.

Try now.

Chasim
12-10-2004, 12:24 AM
Link works and the pet bar is fixed also! Thanks again.

Beest
03-04-2005, 07:15 AM
Problem is have with this bar is . .

As Warrior it overlaps my Stances bar

And as a priest when i Mind Control someone. The actions buttons move above the bar. But the background art work of the original bar still overlaps the second bar.

Anonymous
03-10-2005, 08:21 AM
ok soo i got the jist of how to do some of this stuff... but when i got the extra bars.. they are over above my bag slots?? eh how do i make em above the action slots??

Anonymous
03-11-2005, 01:59 PM
Are there any dependencies for Secondbar?

As I just unzipped it into wow/interface/addons and it doesn't work. Does not give any errors or warnings to the console either...