dan game: soul gauge drawn as on the cabinet #66

Merged
GanYiZhong merged 5 commits from GanYiZhong/YataiDONNijiiro:fix/dan-game-gauge into main 2026-10-14 15:38:18 +02:00
5 Commits
Author SHA1 Message Date
TaikoZhongandClaude Opus 5.5 97fa82924f Dan gauge plate: uncropped art, value at the cabinet's size
The plate art had its top and left rows cut off, flattening the top of the
魂ゲージ pill. It is now the cabinet's whole plate (with its 9 px margin),
drawn 9 px up and left so the layout constants stay put. The threshold
caption is the cabinet's size 36, its centre moved up to match.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 21:12:38 +08:00
TaikoZhongandClaude Opus 5.5 48660a8b87 dan game: the soul gauge over the lane's top edge, as on the cabinet
The engine draws the lane after the gauge, and the lane's black top edge (y 276) hid the
cells' last six rows; the cabinet's gauge sits over it (cells down to y 281). The gauge
leaves a redraw (g_dan_gauge_redraw) that the dan background's draw_fore repeats, clipped
to that strip (y 276-288).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 21:01:01 +08:00
TaikoZhongandClaude Opus 5.5 287f8ffd67 dan game: the soul gauge drawn as the cabinet's tamashii_gauge
Gauge:draw_dan is this skin's own now, built from the cabinet's tamashii_gauge pieces:
- the gold track (border) with the red track (gauge_dan/track_red, gauge_bg) only up to the
  threshold, so the cells past it are dark gold;
- the lit cells as the cabinet's lamp stretched 21 px per cell (gauge_dan/1p_lamp, 2p_lamp),
  all yellow (lamp_clear) once the gauge reaches the threshold, with the matching glow on a
  newly lit cell (bar_fade_clear);
- the cell separators at the cabinet's 103/255 (they were drawn at 0.15, plus a second copy
  from the dan background);
- 魂 grey, white once cleared, in flames at full.
The threshold comes from the dan exam: background/dan_info hands it over as
g_dan_gauge_border. Without it, or on a screen without these pieces, the parent draws.
This replaces the gold-zone repaint in dan_info, and 1p_bar / 2p_bar / 1p_bar_fade go back
to what they were.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 20:22:30 +08:00
TaikoZhongandClaude Opus 5.5 e8ce3b3a7d dan game: the soul gauge's gold zone past the threshold
The cabinet shows the cells past the threshold in gold: dark gold while unfilled, its
lamp_clear (white band over yellow) once filled. The gauge script does not know the
threshold, so dan_info, which does, paints them over the engine's cells in the gauge layer
(game/dan_info/gauge_gold_cell, gauge_gold_unfilled).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 19:33:42 +08:00
TaikoZhongandClaude Opus 5.5 a9bce590c5 dan game: soul gauge threshold marker, cell art and threshold caption
- The white threshold marker (game/dan_info/gauge_border_cell) is drawn on the threshold
  cell, as the cabinet's border_N, from Background:draw_fore so it sits over the lane frame.
- The gauge cells (gauge_dan/1p_bar, 2p_bar, 1p_bar_fade) get the cabinet lamp's light
  band along the top.
- The 「100 %以上」 caption on the threshold plate sits lower and one size smaller, as on
  the cabinet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 19:23:04 +08:00