Skip to content

Commit

Permalink
feat: add "escape" event to helper menu (#43)
Browse files Browse the repository at this point in the history
* minor: add "escape" event to helper menu

Signed-off-by: Charley <[email protected]>

---------

Signed-off-by: Charley <[email protected]>
  • Loading branch information
charley04310 authored Dec 7, 2023
1 parent 5f5cd3d commit 572e3eb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,22 +94,24 @@ pub fn render_help_popup(frame: &mut Frame) {
let text = vec![
Line::from(""),
Line::from(""),
Line::from(vec!["Game controls:".underlined().bold()]),
Line::from("Game controls:".underlined().bold()),
Line::from(""),
Line::from(vec![
"← ↑ ↓ →: Use the arrow keys to move the ".into(),
"blue".blue(),
" cursor".into(),
]),
Line::from(""),
Line::from(vec!["SPACE_BAR: Interact with a cell".into()]),
Line::from("SPACE_BAR: Select a piece"),
Line::from(""),
Line::from("ESCAPE: Deselect a piece",),
Line::from(""),
Line::from("q: Press q to quit the game"),
Line::from(""),
Line::from("Ctrl + or -: Zoom in or out to adjust pieces sizes"),
Line::from(""),
Line::from(""),
Line::from(vec!["Color codes:".underlined().bold()]),
Line::from("Color codes:".underlined().bold()),
Line::from(""),
Line::from(vec!["Blue cell".blue(), ": Your cursor ".into()]),
Line::from(""),
Expand Down

0 comments on commit 572e3eb

Please sign in to comment.