Adjust tooltip phrasing to hopefully indicate the exact number of shortcuts isn't meaningful

This commit is contained in:
Dustin Carlino 2022-06-12 09:16:06 +01:00
parent 4f0b150d68
commit 08cc1e2722

View File

@ -58,7 +58,7 @@ pub fn make_world(
.drawn_in_master_batch()
.hover_outline(colors::OUTLINE, Distance::meters(5.0))
.tooltip(Text::from(format!(
"{} shortcuts cross {}",
"{} possible shortcuts cross {}",
shortcuts.count_per_road.get(*r),
road.get_name(app.opts.language.as_ref()),
)))
@ -74,7 +74,7 @@ pub fn make_world(
.drawn_in_master_batch()
.hover_outline(colors::OUTLINE, Distance::meters(5.0))
.tooltip(Text::from(format!(
"{} shortcuts cross this intersection",
"{} possible shortcuts cross this intersection",
shortcuts.count_per_intersection.get(*i)
)))
.clickable()