Nameplate: no dan without a badge, name clear of the dan chip #19

Merged
Yonokid merged 3 commits from GanYiZhong/PyTaikoGreen:fix/nameplate-dan-chip into main 2026-11-02 14:30:12 +01:00
Contributor
  • Plate without a player badge (the entry screen's "what will you do" dialog): shows no dan, only the title and the name centred. Before, the dan chip was drawn and the name ran over its text (e.g. 玄人).
  • Plate with a badge and a dan: the name was centred right of half the badge plus the chip's width, but the chip is drawn at its texture.json x (62) and ends at x 126; the name is now centred right of the chip's actual right edge, so long names stay clear of it (it moves a little right).

Plates without a dan are unchanged.

🤖 Generated with Claude Code

- **Plate without a player badge** (the entry screen's "what will you do" dialog): shows no dan, only the title and the name centred. Before, the dan chip was drawn and the name ran over its text (e.g. 玄人). - **Plate with a badge and a dan**: the name was centred right of half the badge plus the chip's width, but the chip is drawn at its texture.json x (62) and ends at x 126; the name is now centred right of the chip's actual right edge, so long names stay clear of it (it moves a little right). Plates without a dan are unchanged. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
GanYiZhong added 1 commit 2026-11-02 07:53:31 +01:00
The name was centred right of half the badge plus the chip's width, but the
chip is drawn at its texture.json x: without a badge (the entry screen) the
name started at x 64 while the chip ends at x 126, so a name ran over the
dan text. The name is now centred right of the chip's actual right edge
(or the badge when there is no dan).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GanYiZhong added 1 commit 2026-11-02 07:56:18 +01:00
The chip curves in around the player badge; on a plate without one that left
a light crescent at the left end. dan_emblem_bg_left fills it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GanYiZhong added 1 commit 2026-11-02 08:01:49 +01:00
The entry screen's plate shows only the title and the name, centred. This
replaces the left-end fill from the previous commit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GanYiZhong changed title from Nameplate: keep the name clear of the dan chip to Nameplate: no dan without a badge, name clear of the dan chip 2026-11-02 08:01:53 +01:00
Yonokid merged commit 6cd3899b58 into main 2026-11-02 14:30:12 +01:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Yonokid/PyTaikoGreen#19