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

Fix skin element "PlayerFlag" responding to clicks/hovers #25530

Merged
merged 9 commits into from
Nov 23, 2023

Conversation

yesseruser
Copy link
Contributor

Fixes #25529.

Added BaseUpdateableFlag and BaseDrawableFlag classes that don't have tooltips or click functionality.
The UpdateableFlag class was renamed to ClickableUpdateableFlag.

The BaseDrawableFlag is used in a BaseUpdateableFlag so the tooltip is not shown, the ClickableUpdateableFlag still shows the tooltip.
@frenzibyte
Copy link
Member

That's a lot of over-engineering. Why not just introduce a bool parameter on UpdateableFlag defining whether it's "interactive", similar to UpdateableAvatar? Then use that to decide whether to use HoverSounds or HoverClickSounds and whether to call "show profile overlay".

Copy link
Member

@frenzibyte frenzibyte left a comment

Choose a reason for hiding this comment

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

As above.

@peppy
Copy link
Member

peppy commented Nov 22, 2023

Why not just disable subtree input on the skinnable component and avoid all complexity?

@frenzibyte
Copy link
Member

That sounds fine as well.

@yesseruser
Copy link
Contributor Author

yesseruser commented Nov 22, 2023

Why not just disable subtree input on the skinnable component and avoid all complexity?

I'll undo the changes and do that.

@yesseruser
Copy link
Contributor Author

Done. Should work now without overengineering.

@peppy peppy changed the title The PlayerFlag now is now fully unclickable, nor does it show a tooltip. Fix skin element "PlayerFlag" responding to clicks/hovers Nov 23, 2023
@peppy peppy self-requested a review November 23, 2023 07:19
@peppy peppy merged commit 9a6857b into ppy:master Nov 23, 2023
9 of 10 checks passed
@yesseruser yesseruser deleted the FlagHUD branch December 19, 2023 21:30
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.

The PlayerFlag skinning element is a button
3 participants