aw yeah, unicode arrow key descriptions. and tweaking some wording from filip's feedback

This commit is contained in:
Dustin Carlino 2018-12-22 23:18:49 -08:00
parent 92ce83dfdd
commit 551a8ef63a
3 changed files with 8 additions and 8 deletions

View File

@ -334,13 +334,13 @@ fn choose_preset(
// closure. Grr.
let mut choices: Vec<(String, ControlTrafficSignal)> = Vec::new();
if let Some(ts) = ControlTrafficSignal::four_way_four_phase(map, id) {
choices.push(("4-phase".to_string(), ts));
choices.push(("four-phase".to_string(), ts));
}
if let Some(ts) = ControlTrafficSignal::four_way_two_phase(map, id) {
choices.push(("2-phase".to_string(), ts));
choices.push(("two-phase".to_string(), ts));
}
if let Some(ts) = ControlTrafficSignal::three_way(map, id) {
choices.push(("2-phase".to_string(), ts));
choices.push(("three-phase".to_string(), ts));
}
if let Some(ts) = ControlTrafficSignal::greedy_assignment(map, id) {
choices.push(("arbitrary assignment".to_string(), ts));

View File

@ -60,7 +60,7 @@ impl<S: UIState> GUI<RenderingHints> for UI<S> {
],
),
Folder::new(
"Sim",
"Simulation",
vec![
(Key::LeftBracket, "slow down sim"),
(Key::RightBracket, "speed up sim"),

View File

@ -223,10 +223,10 @@ impl Key {
Key::LeftShift => "Shift".to_string(),
Key::LeftControl => "Control".to_string(),
Key::LeftAlt => "Alt".to_string(),
Key::LeftArrow => "Left arrow key".to_string(),
Key::RightArrow => "Right arrow key".to_string(),
Key::UpArrow => "Up arrow key".to_string(),
Key::DownArrow => "Down arrow key".to_string(),
Key::LeftArrow => "← arrow".to_string(),
Key::RightArrow => "→ arrow".to_string(),
Key::UpArrow => "".to_string(),
Key::DownArrow => "".to_string(),
// These have to_char, but override here
Key::Space => "Space".to_string(),
_ => self.to_char(false).unwrap().to_string(),