Skip to content

Add a hover tooltip explaining why Ranked is greyed out - #6

Open
12problems wants to merge 1 commit into
mainfrom
feat/ranked-gate-tooltip
Open

Add a hover tooltip explaining why Ranked is greyed out#6
12problems wants to merge 1 commit into
mainfrom
feat/ranked-gate-tooltip

Conversation

@12problems

Copy link
Copy Markdown
Contributor

Summary

The Find Game menu's Ranked section greys itself out via SPDRN._ranked_queue_available() (MPAPI.is_launcher_verified()), but gives the player no explanation why. This adds a hover tooltip on the greyed-out section explaining that Ranked needs to be launched via the launcher's Ranked mode.

Why not a popup/notice instead

MultiplayerAPI deliberately removed an unsolicited "anti-cheat check failed" notice (af85092) because it was misleading noise on every normal, non-BET launch. A hover tooltip is opt-in — it only appears if the player actually hovers the disabled section — so it doesn't reintroduce that problem while still making the disabled state legible.

Implementation notes

  • The tooltip is attached to queue_section's outer container, not the individual buttons — build_stat_button sets hover = enabled, so a disabled button's hover collision is already off and a tooltip on it would never fire.
  • SPDRN._ranked_queue_available() is a bare boolean, so this uses one honest, generic reason covering every case it can be false (no BET, Casual launch, verification still pending) rather than guessing which applies.

🤖 Generated with Claude Code

The Find Game menu's Ranked section already greys itself out via
SPDRN._ranked_queue_available() (MPAPI.is_launcher_verified()), but gives
the player no indication why -- a legitimate player who isn't using the
launcher (or hasn't verified yet) just sees a disabled section with no
explanation.

Attach a hover tooltip to the section's own container (not the individual
buttons, since a disabled button's hover collision is stripped and would
never fire it) explaining that Ranked mode needs to be launched through the
launcher. This is a plain on-hover tooltip, not an unsolicited popup, so it
doesn't reintroduce the "misleading noise on every normal launch" problem
af85092 removed on MultiplayerAPI -- it only shows if the player actually
hovers the greyed-out section.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant