mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-29 01:13:53 +03:00
tweak instructions and at least say what current turn priority is in OSD
This commit is contained in:
parent
8a8d017063
commit
7b6d20bb08
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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(),
|
||||
])),
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user