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

auras: Add .tooltipAnchor option #511

Merged
merged 1 commit into from Jul 9, 2019
Merged

auras: Add .tooltipAnchor option #511

merged 1 commit into from Jul 9, 2019

Conversation

ls-
Copy link
Member

@ls- ls- commented Jul 9, 2019

Due to 8.2 UI changes, we should avoid parenting GameTooltip to frames with anchoring restrictions, otherwise, GameTooltip will inherit said restrictions.

This PR addresses #510, but it also adds an option to adjust GameTooltip's anchor point w/o the need to using the CreateIcon override.

@ls- ls- self-assigned this Jul 9, 2019
Copy link
Member

@Rainrider Rainrider left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ls- ls- merged commit c0113d9 into master Jul 9, 2019
Wutname1 added a commit to Wutname1/SUF that referenced this pull request Jul 9, 2019
@p3lim
Copy link
Member

p3lim commented Jul 9, 2019

The anchoring restriction checks should have comments on them, for later reference.

@Wutname1
Copy link

@ls- This fix does not seem to be working for me. It is anchoring to the buff button even when manually specifying cursor. When i add a print to self:GetParent().__owner.tooltipAnchor it returns nil.

Looks like "self:GetParent().__owner" is the nameplate frame it's self and not the Auras frame.
Calling self:GetParent().__owner.Auras.tooltipAnchor works but obviously not a real fix as it only works in 1/3rd of scenarios.

@ls-
Copy link
Member Author

ls- commented Jul 18, 2019

Damn, yeah, self:GetParent().__owner.tooltipAnchor should be self:GetParent().tooltipAnchor >_>

I'll PR a fix either later today or tomorrow, I'll add comments @p3lim asked for as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants