Skip to content

Show life increment on the side opposite the tapped side - #8

Open
JonathanEspinosaLong wants to merge 1 commit into
MasiaVittorio:masterfrom
JonathanEspinosaLong:increment-opposite-tap-side
Open

Show life increment on the side opposite the tapped side#8
JonathanEspinosaLong wants to merge 1 commit into
MasiaVittorio:masterfrom
JonathanEspinosaLong:increment-opposite-tap-side

Conversation

@JonathanEspinosaLong

@JonathanEspinosaLong JonathanEspinosaLong commented Jul 8, 2026

Copy link
Copy Markdown

Tapping the left half of an ArenaPlayerCell now displays the pending life increment to the right of the life total, and tapping the right half displays it to the left, the increment lands opposite the side you touched.

Works in both arena orientations:

  • Horizontal: the tapped region (left/right half) determines the side.
  • Vertical: the tap's horizontal position within the full-width region is used.

Implementation:

  • Added incrementOnRight reactive to ArenaPlayerController.
  • PlayerCellSideTaps records the tapped side on tap-down (plumbing TapDownDetails through ContinuedLongPress).
  • PlayerCellCenter orders the row via textDirection so the existing life-total widget is untouched.

Tapping the left half of an ArenaPlayerCell now shows the pending
increment to the right of the life total, and tapping the right half
shows it to the left. Works in both horizontal and vertical arena
layouts (vertical uses the tap's horizontal position within the region).
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