From 14ef19a3965f5a6fd86c2024fd7f32e2e29c6521 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 27 Apr 2026 02:33:02 +0000 Subject: [PATCH] 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 --- solitaire_engine/src/hud_plugin.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/solitaire_engine/src/hud_plugin.rs b/solitaire_engine/src/hud_plugin.rs index c32860e..9d54333 100644 --- a/solitaire_engine/src/hud_plugin.rs +++ b/solitaire_engine/src/hud_plugin.rs @@ -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(),