WoW-Pro Guides

WoW-Pro Guides

3M Downloads

Frame Location Changing after Turning in / Picking up New Quest

jtmunn opened this issue ยท 10 comments

commented

Please create a new issue, preferably with some screenshots or even a short low-res movie demonstrating the issue. I have to confess, I'm pretty dense when it comes to UI issues, so pictures and a step-by-step description has alot of value.

Originally posted by @Ludovicus-Maior in #443 (comment)

commented

Thanks for the screenshots. Would you mind uploading a copy of your global state file?
On my Mac, it is located here: /Applications/World\ of\ Warcraft/_classic_/WTF/Account/XXX\#1/SavedVariables/WoWPro.lua . I bet you are on windows, but once you find your wow client location and flip the slashes, it is pretty much the same.
It will have information in it that will tell me the anchoring point choice stored in the profile.

commented

This is in TBC: Classic FYI.

  1. Pickup a quest and align frame with something else in UI for reference (top aligned with right action bar):
    2022-04-18 14_40_43-Greenshot

  2. After questing a while, turning in quests and picking up a new quest, the frame is no longer aligned:
    2022-04-18 15_07_32-Greenshot

  3. My hunch is that the code is incorrectly capturing the origin point (top right) or that the frame is needing extra space after the origin point was set due to the size required for the current quest block (maybe due to quest-use items? since I only noticed after the item appeared for the quest?)

commented

WoWPro.lua.txt

I had to change to .txt because it said the other file type was not supported. For what it's worth, this happens on each of my toons. It's not game breaking, I will continue to use the AddOn, it's just a little frustrating :)

commented

@jtmunn I'm sorry to bother you again, but you gave me the state file for your character, not the global one.
Please look for the SavedVariables\WoWPro.lua file that is not under the realm\character directory.

commented

@Ludovicus-Maior - Sorry, I thought I followed the path you provided. Here it is:
WoWPro.lua (2).txt

commented

Thanks. Inside is this tidbit:

["position"] = {
				"RIGHT", -- [1]
				nil, -- [2]
				"RIGHT", -- [3]
				-51.86966705322266, -- [4]
				154.6867523193359, -- [5]
			},

Which tells the anchor point the UI used was the right center of the window

commented

Nope! That's why I need to add some code to let you set this, if you care.
This just let me confirm that it was working as designed, which is not what you want.

commented

Is there a way that I can change it to be top right?

commented

I understand. I really do appreciate your help. I have some dev experience myself so if there's anything I can do please let me know. I've never worked with LUA / Wow Addons before, but wouldn't mind getting my hands dirty if it helps out.

commented

Thanks for the offer, but even with Lua experience, the Blizzard UI code is full of nasty pitfalls.
I'll think about it for a few days and try a fix this weekend. I'll tag you when the the checkins come in.