feat(engine): HUD shows 'Draw 3' badge when playing in Draw Three mode

Classic + DrawOne shows nothing (clean default). Classic + DrawThree shows
a "Draw 3" badge in the mode position so the player always knows their
current game variant without opening the stats or settings screen.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
root
2026-04-27 02:33:02 +00:00
parent 3d5f34a650
commit 14ef19a396
+5 -2
View File
@@ -6,7 +6,7 @@
//! without a separate tick system.
use bevy::prelude::*;
use solitaire_core::game_state::GameMode;
use solitaire_core::game_state::{DrawMode, GameMode};
use crate::game_plugin::GameMutation;
use crate::resources::GameStateResource;
@@ -91,7 +91,10 @@ fn update_hud(
}
if let Ok(mut t) = mode_q.get_single_mut() {
**t = match g.mode {
GameMode::Classic => String::new(),
GameMode::Classic => match g.draw_mode {
DrawMode::DrawOne => String::new(),
DrawMode::DrawThree => "Draw 3".to_string(),
},
GameMode::Zen => "ZEN".to_string(),
GameMode::Challenge => "CHALLENGE".to_string(),
GameMode::TimeAttack => "TIME ATTACK".to_string(),