WoWInterface (
-   nUI: Technical Support (
-   -   Bottom Pet Battle Bar (

Angery 10-05-13 02:09 AM

Bottom Pet Battle Bar
1 Attachment(s)
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.

Xrystal 10-05-13 02:39 AM

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.

Daveo77 10-05-13 05:26 AM


/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).

spiel2001 10-05-13 07:29 AM

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.

Angery 10-05-13 04:28 PM

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.

Xrystal 10-05-13 07:44 PM

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.

Angery 10-05-13 08:02 PM

Yea, it's crazy.. I mean, I can move it I guess. Just have to move my pet ability bar too.

Xrystal 10-05-13 10:39 PM

1 Attachment(s)
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.

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 ..

Xrystal 10-06-13 03:25 AM

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.

Angery 10-06-13 08:31 PM

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.

spiel2001 10-07-13 06:08 AM

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...


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.

Xrystal 10-07-13 01:17 PM

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
  4. nUI_Movers.managedFrames =
  5. {
  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.     },
  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.     },

spiel2001 10-07-13 01:28 PM


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

Angery 10-07-13 04:17 PM

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.

All times are GMT -6. The time now is 06:49 PM.

vBulletin © 2019, Jelsoft Enterprises Ltd
© 2004 - 2019 MMOUI