View Single Post
12-12-13, 05:28 PM   #18
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,892
Yes, the problem seems to be linked to where blizzard has been last told where the buttons should be, even if it has been moved incorrectly.

The problem is such that the only way so far to turn off that error is to tell nUI not specially position all the buttons. Unfortunately somewhere it seems they don't automatically draw correctly when nUI is loaded despite blizzard basing the positions of the other buttons on the character button. Apart from the store icon which seems to be positioned based on the computer icon. Why, I don't know but I suspect that is why the errors are occurring.

The attached file now only has 2 lines commented out ( the clearing of the points and the positioning of the buttons other than the character button ) but also has the PLAYER_LOGOUT test being handled to tell blizzard that it can now take control of the buttons as long as nUI isn't loaded to reset it again.

A few tests involving re-logging, both partly and completely and several pet battles have resulted in consistent results in that whenever you start nUI the buttons are in the right place ( based on nUI's layout folder settings ) and whenever you do a reload after a pet battle it puts them back in the right place. No more wiping out that layout file after logging out completely as nUI does that all for you automatically when you log out.

Weekend coming up so more time to spend investigating on a way to get the buttons displaying properly even after a pet battle without resorting to reloading of the UI.
Attached Files
File Type: lua nUI_MicroMenu.lua (20.4 KB, 383 views)
__________________