Compare commits

...
Author SHA1 Message Date
Yonokid 0d7c7f5d69 Merge branch 'main' into result-gauge-clear 2026-09-18 16:17:52 +02:00
Yonokid cd9c417713 Merge pull request 'i18n: Korean for every dictionary string' (#36) from GanYiZhong/YataiDONNijiiro:text-labels into main
Reviewed-on: Yonokid/YataiDONNijiiro#36
2026-09-18 16:17:43 +02:00
TaikoZhongandClaude Fable 5.1 41c484a8c8 result: the gold gauge cell follows the cleared state, not the cell count
The first gold cell was lit from the cell count (39 of 50 for oni) while the game clears on soul >= norma (8000); a failed run at 7800..7999 soul grew a gold cell. Draw the transition piece and the gold strip only when gauge_state >= 1, like the HUD gauge.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-17 12:19:06 +08:00
+7 -2
View File
@@ -662,11 +662,16 @@ function ResultPlayer:draw_gauge()
local n = math.min(gl_int, clear_pt - 1)
tex.draw_texture(self.t_gauge_bar, { scale = scale, x2 = (n - 1) * u, fade = base_fade, index = p_idx })
end
if gl_int >= clear_pt - 1 and self.t_gauge_bar_clear_transition then
-- The transition piece is the first gold cell (the rounded cap of the clear zone).
-- Light it only when the run is cleared, like the HUD gauge (Gauge::get_is_clear):
-- the norma sits inside that cell (oni 8000 = cell 40.0 of 50, but a failed run at
-- 7800..7999 soul already shows 39 cells), so a cell-count test lit it a cell early
-- and a failed result grew a gold cell.
if gl_int >= clear_pt - 1 and self.gauge_state >= 1 and self.t_gauge_bar_clear_transition then
tex.draw_texture(self.t_gauge_bar_clear_transition,
{ scale = scale, x = (clear_pt - 1) * u, fade = base_fade, index = p_idx })
end
if gl_int > clear_pt then
if gl_int > clear_pt and self.gauge_state >= 1 then
local extra = (gl_int - clear_pt - 1) * u
if self.t_gauge_bar_clear_top then
tex.draw_texture(self.t_gauge_bar_clear_top,