tweak instructions and at least say what current turn priority is in OSD

This commit is contained in:
Dustin Carlino 2018-12-14 12:34:17 -08:00
parent 8a8d017063
commit 7b6d20bb08
2 changed files with 13 additions and 2 deletions

View File

@ -130,7 +130,10 @@ impl Plugin for TrafficSignalEditor {
TurnPriority::Priority => Some(TurnPriority::Banned),
};
if let Some(pri) = next_priority {
if input.key_pressed(Key::Space, &format!("toggle to {:?}", pri)) {
if input.key_pressed(
Key::Space,
&format!("toggle from {:?} to {:?}", cycle.get_priority(id), pri),
) {
cycle.edit_turn(id, pri, &ctx.primary.map);
}
}

View File

@ -29,7 +29,15 @@ impl TutorialState {
state: State::GiveInstructions(LogScroller::new_from_lines(vec![
"Welcome to the A/B Street tutorial!".to_string(),
"".to_string(),
"There'll be some instructions here eventually. Fix all the traffic!".to_string(),
"Goal: Make the traffic signal more fair.".to_string(),
"Hover over things to see possible actions. You can also press:".to_string(),
"".to_string(),
"SPACE to run/pause the game.".to_string(),
"[ to slow down".to_string(),
"] to speed up".to_string(),
"t to go back in time".to_string(),
"".to_string(),
"Press ENTER to start the game!".to_string(),
])),
}
}