Skip to content

Commit 9e3aa4e

Browse files
unhappychoiceclaude
andcommitted
feat: update title screen to use help screen and rename history to records
- Change [I/?] key binding from InfoDialog to Help screen - Rename TitleAction::History to TitleAction::Records for better consistency - Update display text from "History" to "Records" to match R key binding - Maintain existing key mappings while improving UI clarity 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 0873eb7 commit 9e3aa4e

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

src/game/screens/title_screen.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const DIFFICULTIES: [(&str, DifficultyLevel); 5] = [
2121
#[derive(Clone, Debug)]
2222
pub enum TitleAction {
2323
Start(DifficultyLevel),
24-
History,
24+
Records,
2525
Analytics,
2626
Quit,
2727
}
@@ -114,12 +114,10 @@ impl Screen for TitleScreen {
114114
self.action_result = Some(TitleAction::Quit);
115115
Ok(ScreenTransition::Exit)
116116
}
117-
KeyCode::Char('i') | KeyCode::Char('?') => {
118-
Ok(ScreenTransition::Push(ScreenType::InfoDialog))
119-
}
117+
KeyCode::Char('i') | KeyCode::Char('?') => Ok(ScreenTransition::Push(ScreenType::Help)),
120118
KeyCode::Char('r') | KeyCode::Char('R') => {
121-
self.action_result = Some(TitleAction::History);
122-
Ok(ScreenTransition::Replace(ScreenType::History))
119+
self.action_result = Some(TitleAction::Records);
120+
Ok(ScreenTransition::Replace(ScreenType::Records))
123121
}
124122
KeyCode::Char('a') | KeyCode::Char('A') => {
125123
self.action_result = Some(TitleAction::Analytics);

src/game/views/title/static_elements_view.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ impl StaticElementsView {
6868
execute!(stdout, Print(" Change Difficulty"))?;
6969
execute!(stdout, ResetColor)?;
7070

71-
// Tier 2: Secondary actions (history analytics info)
72-
let secondary_display_width = 38u16; // "[R] history [A] analytics [I/?] info"
71+
// Tier 2: Secondary actions (records analytics help)
72+
let secondary_display_width = 38u16; // "[R] Records [A] Analytics [I/?] Help"
7373
let secondary_col = center_col.saturating_sub(secondary_display_width / 2) + 2;
7474
execute!(stdout, MoveTo(secondary_col, instructions_start_row + 1))?;
7575
execute!(
@@ -81,7 +81,7 @@ impl StaticElementsView {
8181
stdout,
8282
SetForegroundColor(Colors::to_crossterm(Colors::TEXT))
8383
)?;
84-
execute!(stdout, Print(" History "))?;
84+
execute!(stdout, Print(" Records "))?;
8585
execute!(
8686
stdout,
8787
SetForegroundColor(Colors::to_crossterm(Colors::INFO))
@@ -101,7 +101,7 @@ impl StaticElementsView {
101101
stdout,
102102
SetForegroundColor(Colors::to_crossterm(Colors::TEXT))
103103
)?;
104-
execute!(stdout, Print(" Info"))?;
104+
execute!(stdout, Print(" Help"))?;
105105
execute!(stdout, ResetColor)?;
106106

107107
// Tier 3: Primary actions (Start Quit)

0 commit comments

Comments
 (0)