From e235d8012bbef429ec21708ca0efd10c726fff28 Mon Sep 17 00:00:00 2001 From: Jeffrey Wilcke Date: Mon, 12 Oct 2026 22:22:15 +0200 Subject: [PATCH] =?UTF-8?q?ui:=20title=20caption=20'high=20tech=20=C2=B7?= =?UTF-8?q?=20low=20life';=20overlay=20hint=20reads=20'd=20overlay'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5.1 --- crates/cyberpunk/src/screens/explore.rs | 5 +++-- crates/cyberpunk/src/screens/title.rs | 7 ++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/crates/cyberpunk/src/screens/explore.rs b/crates/cyberpunk/src/screens/explore.rs index 81d8fc3..8cb4aa0 100644 --- a/crates/cyberpunk/src/screens/explore.rs +++ b/crates/cyberpunk/src/screens/explore.rs @@ -495,10 +495,10 @@ impl Screen for MapScreen { let jacked = st.player.as_ref().is_some_and(|p| p.jacked_in()); let hints = match (self.mode, jacked) { (Mode::Explore, _) => { - "hjkl pan · [] level · w walk · d net · e legend · s save · ? keys" + "hjkl pan · [] level · w walk · d overlay · e legend · s save · ? keys" } (Mode::Walk, true) => { - "⚡ jacked in · hjkl move · enter jack out · tab camera · d net · ? keys" + "⚡ jacked in · hjkl move · enter jack out · tab camera · d overlay · ? keys" } (Mode::Walk, false) => "hjkl move · <> stairs · enter jack in · tab camera · ? keys", }; @@ -719,6 +719,7 @@ mod tests { let text = buffer_text(t.backend().buffer()); assert!(text.contains("jack out"), "{text}"); assert!(text.contains("jacked in"), "{text}"); + assert!(text.contains("d overlay"), "{text}"); // The body shows on the Street while the avatar is in the Net. s.mode = Mode::Explore; s.stratum = StratumKind::Street; diff --git a/crates/cyberpunk/src/screens/title.rs b/crates/cyberpunk/src/screens/title.rs index ac991b5..4dc8eb6 100644 --- a/crates/cyberpunk/src/screens/title.rs +++ b/crates/cyberpunk/src/screens/title.rs @@ -15,7 +15,7 @@ use ratatui::text::Span; use ratatui::widgets::{Paragraph, Widget}; pub const TITLE: &str = "CYBERPUNK"; -const SUBTITLE: &str = "c i t y g e n e r a t o r"; +const SUBTITLE: &str = "h i g h t e c h · l o w l i f e"; pub struct Title { menu: Menu, @@ -147,6 +147,11 @@ mod tests { "{text}" ); assert!(text.contains('█')); + st.tick = 600; + t.draw(|f| title.draw(&st, f)).unwrap(); + let text = buffer_text(t.backend().buffer()); + assert!(text.contains("h i g h t e c h"), "{text}"); + assert!(!text.contains("g e n e r a t o r"), "{text}"); assert!(matches!( title.update(&mut st, &[key(KeyCode::Char('q'))]), ScreenCmd::Quit