summaryrefslogtreecommitdiff
path: root/src/scenes/forge.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/scenes/forge.rs')
-rw-r--r--src/scenes/forge.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/scenes/forge.rs b/src/scenes/forge.rs
index f856c8f..a49e098 100644
--- a/src/scenes/forge.rs
+++ b/src/scenes/forge.rs
@@ -10,6 +10,7 @@ use ratatui::style::{Color, Style, Stylize};
use ratatui::text::{Line, Span};
use ratatui::widgets::{Block, Paragraph, Wrap};
+use super::keys;
use super::{Scene, Transition};
use crate::app::Ctx;
use crate::names::{self, Artifact, Culture};
@@ -51,7 +52,8 @@ impl Forge {
}
}
-fn colour(culture: Culture) -> Color {
+/// Each people's colour, wherever they're shown.
+pub fn colour(culture: Culture) -> Color {
match culture {
Culture::Qaari => Color::Yellow,
Culture::Cant => Color::Red,
@@ -147,7 +149,11 @@ impl Scene for Forge {
frame.render_widget(Paragraph::new(lines).block(block), artifacts);
frame.render_widget(
- Paragraph::new(" [space/→] forge again [←] previous [esc] back").dark_gray(),
+ Paragraph::new(keys::line(&[
+ ("space →", "forge again"),
+ ("←", "previous"),
+ ("esc", "back"),
+ ])),
footer,
);
}