Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't move the Profession List #705

Open
ishirra opened this issue Feb 21, 2021 · 5 comments
Open

Can't move the Profession List #705

ishirra opened this issue Feb 21, 2021 · 5 comments
Labels
Addon Conflict Bug with another addon - No guarantee it'll be fixed

Comments

@ishirra
Copy link

ishirra commented Feb 21, 2021

I can not move the Profession List.
It is not locked, and would like to move it to the side of my screen in stead of smack in the middle.

This is how it shows up, and as you can see it is not locked.
image

@Molkree Molkree added the Addon Conflict Bug with another addon - No guarantee it'll be fixed label Feb 21, 2021
@ishirra
Copy link
Author

ishirra commented Feb 22, 2021

I have been able to narrow it down to which addon it conflicts with. Seems Skillet is the one causing the frame to become unmovable.

@b-morgan
Copy link

b-morgan commented Feb 22, 2021

Skillet doesn't cause the frame to become unmovable, the frame is unmovable because it is attached to Blizzard's TradeSkillFrame and set to unmovable. See lines 14892-14896 in AllTheThings.lua:
https://github.com/DFortun81/AllTheThings/blob/b1f7978a05b0c8b17f6dfc5c5fb5ec1a07a7782d/AllTheThings.lua#L14892-L14896
I added 4 lines before 14892 so that it now reads:

			elseif SkilletFrame then
				self:SetPoint("TOPLEFT", SkilletFrame, "TOPRIGHT", 0, 0);
				self:SetPoint("BOTTOMLEFT", SkilletFrame, "BOTTOMRIGHT", 0, 0);
				self:SetMovable(true);
			elseif TradeSkillFrame then
				-- Default Alignment on the WoW UI.
				self:SetPoint("TOPLEFT", TradeSkillFrame, "TOPRIGHT", 0, 0);
				self:SetPoint("BOTTOMLEFT", TradeSkillFrame, "BOTTOMRIGHT", 0, 0);
				self:SetMovable(false);

This attaches the window to the SkilletFrame instead of the TradeSkillFrame and makes it moveable so that when the Skillet frame is moved, it does as well. Note that if Skillet is not installed this code defaults to the original behavior but if Skillet is installed and disabled ("/skillet standby on") or if the Blizzard TradeSkillFrame is (temporarily) shown by shift-clicking a profession button, the frame will appear, be moveable, but will not be attached to anything.

An exception appears to have been made for TradeSkillMaster (which I couldn't get to work when TSM is in its native mode). A similar exception probably needs to be made for Skillet just as Skillet has code to handle TSM. I will be happy to work with the AllTheThings developers to polish this code.

See also b-morgan/Skillet#8 (comment)

@ishirra
Copy link
Author

ishirra commented Feb 22, 2021

This indeed fixed the problem, thank you very much!

@Molkree
Copy link
Collaborator

Molkree commented Feb 22, 2021

Yeah, the profession window doesn't seem to work with TSM now (again). It just doesn't appear. If you open WoW UI then it appears and stays if you switch to TSM UI.

Someone will probably come and fix it somewhere in the future... I suppose I could put in this fix @b-morgan suggested (thanks!) but I don't have the knowledge to fix TSM and properly restructure the code.

@b-morgan
Copy link

My suggestion regarding TSM is to state that it only works in "WOW UI" mode and just hide the frame if TSM is in "TSM4" mode. I print a chat message that says Skillet only works in "WOW UI" mode (later I figured out how to work with "TSM4" mode but it was painful so Skillet has an option that must be set to work in that mode).

Be happy to share the code that checks the mode and prints the chat message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Addon Conflict Bug with another addon - No guarantee it'll be fixed
Projects
None yet
Development

No branches or pull requests

3 participants