Skip to content

fix(ui): show drop and trap hover widgets on hex hover - #3184

Draft
FhiPunkVn wants to merge 1 commit into
FreezingMoon:masterfrom
FhiPunkVn:fix/drop-trap-hover-widgets-2206
Draft

fix(ui): show drop and trap hover widgets on hex hover#3184
FhiPunkVn wants to merge 1 commit into
FreezingMoon:masterfrom
FhiPunkVn:fix/drop-trap-hover-widgets-2206

Conversation

@FhiPunkVn

Copy link
Copy Markdown

Summary

Implements top hover widgets when the cursor is over a hexagon that has drops and/or traps, matching the unit hover panel pattern.

Fixes #2206

Details

  • Drops: show drop name and altered stats with +/- and green/red coloring
  • Traps: show trap/ability name in a player-colored frame plus a short effect description (card-B style slice)
  • Wired from hex onSelect when the hex has no creature unit panel (avoids fighting creature hover)

Test plan

  • Start a match with drops on the board; hover empty hex with drop → top panel shows stats
  • Place/hover a trap hex → panel shows trap name + description frame
  • Hover unit still shows normal unit stats panel
  • Leave hex → panel clears

Fixes FreezingMoon#2206 (bounty: 30 XTR).

When hovering a hex that has drops and/or traps (and no unit panel),
render top widgets in #unit-hover-panel:
- Drops: name + altered stats with +/- and green/red coloring
- Traps: name/icon in player-colored frame + short effect description
@vercel

vercel Bot commented Jul 9, 2026

Copy link
Copy Markdown

@sophiacute2024-crypto is attempting to deploy a commit to the FreezingMoon Team on Vercel.

A member of the Team first needs to authorize it.

@vercel

vercel Bot commented Jul 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ancientbeast Ready Ready Preview Jul 10, 2026 10:55pm

@DreadKnight

Copy link
Copy Markdown
Member

@FhiPunkVn Hovering traps is nothing like requested, needs more work!

Hovering drops shouldn't show the text ("Drop: meat") as that looks kinda bad and it's already in lower right corner.

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.

dash detail cards for drops and traps [bounty: 30 XTR]

2 participants