feat(engine): show challenge mode progress in stats overlay
Stats screen (S key) now shows "Challenge: N / total" in the Progression section so players can see how far they've advanced through the challenge seed list without leaving the screen. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -15,6 +15,7 @@ use solitaire_data::{
|
|||||||
WEEKLY_GOALS,
|
WEEKLY_GOALS,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
use crate::challenge_plugin::challenge_progress_label;
|
||||||
use crate::events::{GameWonEvent, NewGameRequestEvent};
|
use crate::events::{GameWonEvent, NewGameRequestEvent};
|
||||||
use crate::game_plugin::GameMutation;
|
use crate::game_plugin::GameMutation;
|
||||||
use crate::progress_plugin::ProgressResource;
|
use crate::progress_plugin::ProgressResource;
|
||||||
@@ -194,6 +195,10 @@ fn spawn_stats_screen(
|
|||||||
"Daily Streak: {}",
|
"Daily Streak: {}",
|
||||||
p.daily_challenge_streak
|
p.daily_challenge_streak
|
||||||
));
|
));
|
||||||
|
lines.push(format!(
|
||||||
|
"Challenge: {}",
|
||||||
|
challenge_progress_label(p.challenge_index)
|
||||||
|
));
|
||||||
lines.push(String::new());
|
lines.push(String::new());
|
||||||
lines.push("-- Weekly Goals --".to_string());
|
lines.push("-- Weekly Goals --".to_string());
|
||||||
for goal in WEEKLY_GOALS {
|
for goal in WEEKLY_GOALS {
|
||||||
|
|||||||
Reference in New Issue
Block a user