Quantcast Bottom Pet Battle Bar - WoWInterface
 
Thread Tools Display Modes
10-05-13, 02:09 AM   #1
Angery
A Fallenroot Satyr
Join Date: Oct 2009
Posts: 23
Bottom Pet Battle Bar

I have read the forums here a bit, and searched for something similar to this. But didn't see anything. So I am just going to ask, if ok.

As seen in the screen shot here, my bottom pet battle bar is off the screen to the right a bit. I don't see anywhere to move it in /nui movers via a Bottom Petbattle Bar box.

I did try just Nui alone, no other addons. And it persisted.

Please advise.
Attached Thumbnails
Click image for larger version

Name:	WoWScrnShot_100513_005410.jpg
Views:	393
Size:	313.5 KB
ID:	7878  
 
10-05-13, 02:39 AM   #2
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,284
The bottom pet battle bar is the lower part of the massive mover frame that covers all the others when you use /nui movers. It's possible it might have shifted over the last time you moved it out of the way to access the other movers.
__________________
 
10-05-13, 05:26 AM   #3
Daveo77
A Flamescale Wyrmkin
 
Daveo77's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Apr 2010
Posts: 138
Use

/nui movers

to enter edit mode, then right click on big coloured rectangle box to reset it back to it's original position, then

/nui movers

to exit, then do a Pet Battle to see if that has fixed it (should be fixed).
 
10-05-13, 07:29 AM   #4
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
You can enter the pet battle and then do nUI movers, I believe, as well.

Also, you might be able to just right-click the mover for the pet battles to have them returned to their default location.
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/
 
10-05-13, 04:28 PM   #5
Angery
A Fallenroot Satyr
Join Date: Oct 2009
Posts: 23
Ok, had a bit more time this afternoon, and was less sleepy. =P

I did all those things suggested, and nothing worked. So, what I did was delete my account folder and logged back in, Nui only with all default settings. To my surprise, it was centered nicely.

I then used /nui movers and started to quickly move everything back to my preferred locations. Tried a pet battle again, and it was back off to the right. With the pet battle still up, I started to move everything to the left side of the screen. What I found, is the bottom pet battle bar is actually anchored to the top of my pet action bar.

As you can see in my screen shot, that is why the bottom bar is directly centered above the pet bar.

So, I guess my next question would be.. Is there a way to detach it from the top of the pet action bar? As, I really like my pet action bar there.

Also, a side question. With my last UI, my page 1 keybindings shared with the battle pet bar buttons. So, I could use 1,2,3,4,5 etc. I noticed with Nui, they are completely unbound and I have to mouse click them in order to use them. Is there a way to make something like this work with Nui? Keybind the pet battle buttons basically, or get them to share with page 1 sorta like the Ulduar/EoE vehicles were doing?

And, I thank you all for your quick response's and help on the matter. Very much appreciated.
 
10-05-13, 07:44 PM   #6
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,284
When I first looked at how to add the battle pet frame to the mover system I thought that I could do just that .. top bar mover, bottom bar mover. But alas, only the main large frame is named. Unless of course they changed it since. That is why the whole battle pet frame is a mover in one big frame. I can't understand why or how one part of it is shifted off the side. I have done tons of fights with my pets on various toons both with and without pets of their own and have never seen that offset you are seeing.
__________________
 
10-05-13, 08:02 PM   #7
Angery
A Fallenroot Satyr
Join Date: Oct 2009
Posts: 23
Yea, it's crazy.. I mean, I can move it I guess. Just have to move my pet ability bar too.
 
10-05-13, 10:39 PM   #8
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,284
hmm, realised I never did actually move my pet bar from the center of the screen like you have so just tried that and voila .. can see what you are seeing.

edit:
I see where the problem is - around line 823 of the movers.lua file :
Lua Code:
  1. if ( PetBattleFrame ) then
  2.     if ( PetBattleFrame.TopFrame ~= nil ) then
  3.         PetBattleFrame.TopFrame:SetPoint("TOP",nUI_TopBars, "BOTTOM",0,0)
  4.     end
  5.     if ( PetBattleFrame.BottomFrame ~= nil ) then
  6.         PetBattleFrame.BottomFrame:SetPoint("BOTTOM", nUI_SpecialBars, "TOP", 0, 0 );
  7.     end
  8.     --PetBattleFrame:SetScale(nUI.hScale)
  9. end

But as I suspected, there is no way to make movers for the top and bottom sections separately. That was why I added that code in to layer the Bottom Frame above Special Bar frame .. maybe it should be changed to the nUI_Dashboard as that is less likely to be moved.

Yep, looks promising ..
Attached Thumbnails
Click image for larger version

Name:	WoWScrnShot_100613_055153.jpg
Views:	200
Size:	1.20 MB
ID:	7880  
__________________

Last edited by Xrystal : 10-05-13 at 10:53 PM.
 
10-06-13, 03:25 AM   #9
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,284
Actually, Scott, we may as well have that blasted big mover frame removed from the mover system as we have to programattically move the bottom frame due to it overlaying the dashboard otherwise.
__________________
 
10-06-13, 08:31 PM   #10
Angery
A Fallenroot Satyr
Join Date: Oct 2009
Posts: 23
Yea, that looks great. And, I am glad to hear it's not just me. hah

But, I have to admit. I am not very code savvy. So, is this something I can fix on my end? Or now that you tracked it down, just hang tight until the next update?

If you like, you may move this thread to the bug report forums. I just wasn't sure if it was more of user error or not.
 
10-07-13, 06:08 AM   #11
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
Xrystal -- even though those frames aren't named, it should still be possible to attach movers to them. Unfortunately, my hard drive failed Saturday morning (second time in three months -le sigh), so I can't do much at the moment.

That said, if you can get references to those frames, you can still pass them into the movers... or assign them to a global variable something like this...

Code:
nUI_TopPetBattleFrame = PetBattleFrame.topFrame;
nUI_BottomPetBattleFrame = PetBattleFrame.bottomFrame;
(I haven't looked at the actual Blizz code, so I'm paraphrasing there)

In any event, that would give them a "global" name you can access if you need, as long as you have a reference to the actual frames. Even though they're unnamed, there has to be a reference to them somewhere you can grab. Or work backwards from the buttons... the buttons are likely named and you can get their parent, which should be the "bar" -- etc.
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/
 
10-07-13, 01:17 PM   #12
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,284
I tried that Scott just before I posted but maybe I did something wrong.

I'll try it again before I log in tonight.

edit: Well tried the following and no mover came up for either of them. Am I doing something wrong where they are not properly named frames ?

Lua Code:
  1. nUI_PetBattleFrameTop = PetBattleFrame.TopFrame
  2. nUI_PetBattleFrameBottom = PetBattleFrame.BottomFrame
  3.  
  4. nUI_Movers.managedFrames =
  5. {
  6.  
  7.  
  8.  
  9.     -- 5.0.3 Change Start Adding PetBattleFrame to Mover System
  10.     {
  11.         frameName = nUI_PetBattleFrameTop, --"PetBattleFrame",
  12.         labelText = "Top PetBattle Frame",
  13.         parent = "UIParent",
  14.         addOn = "Blizzard_PetBattleUI",
  15.         exclusionFrames = nil,
  16.         requiredFrames = nil,
  17.         defaultPosition =
  18.         {
  19.             anchorPt = "TOPLEFT",
  20.             relativeTo = "nUI_TopBars",
  21.             relativePt = "BOTTOMLEFT",
  22.             xOfs = -5,
  23.             yOfs = 15,
  24.         },
  25.     },
  26.  
  27.     {
  28.         frameName = nUI_PetBattleFrameBottom,--"PetBattleFrame",
  29.         labelText = "Bottom PetBattle Frame",
  30.         parent = "UIParent",
  31.         addOn = "Blizzard_PetBattleUI",
  32.         exclusionFrames = nil,
  33.         requiredFrames = nil,
  34.         defaultPosition =
  35.         {
  36.             anchorPt = "BOTTOM",
  37.             relativeTo = "nUI_Dashboard",
  38.             relativePt = "TOP",
  39.             xOfs = 0,
  40.             yOfs = 0,
  41.         },
  42.     },
__________________

Last edited by Xrystal : 10-07-13 at 01:29 PM.
 
10-07-13, 01:28 PM   #13
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
Okies.

I'm going to futz around with that hard drive this evening if I'm not too wiped out after work. Otherwise, I'm going to have to go through the RMA process with OCZ yet again /le sigh
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/
 
10-07-13, 04:17 PM   #14
Angery
A Fallenroot Satyr
Join Date: Oct 2009
Posts: 23
I'm thinking this is something that is out of my hands. So, I will thank you both again, for looking into this. And promise to make a donation for your time. As, I do appreciate it a lot.

If there is something I can do to assist, don't be shy, and let me know.
 
 

WoWInterface » Featured Projects » nUI, MozzFullWorldMap and PartySpotter » Support » nUI: Technical Support » Bottom Pet Battle Bar

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