Module ltn::
Fields
panel: Panel
paths: Vec<(Path, Path)>
current: usize
draw_paths: Drawable
Implementations
Trait Implementations
Respond to a UI event, such as input or time passing.
-Draw
+}Fields
panel: Panel
paths: Vec<(Path, Path)>
current: usize
draw_paths: Drawable
Implementations
Trait Implementations
Respond to a UI event, such as input or time passing.
+fn draw_baselayer(&self) -> DrawBaselayer
fn draw_baselayer(&self) -> DrawBaselayer
Specifies what to draw before draw()
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
Before this state is popped or replaced, call this.
Auto Trait Implementations
impl !RefUnwindSafe for ChangedRoutes
impl !Send for ChangedRoutes
impl !Sync for ChangedRoutes
impl Unpin for ChangedRoutes
impl !UnwindSafe for ChangedRoutes
Blanket Implementations
Gets the TypeId
of self
. Read more
Constant map_gui::tools::title_screen::built_info::BUILT_TIME_UTC [−][src]
pub const BUILT_TIME_UTC: &str = r"Fri, 25 Mar 2022 13:32:04 +0000";
Expand description
The build time in RFC2822, UTC.
+Constant map_gui::tools::title_screen::built_info::BUILT_TIME_UTC [−][src]
pub const BUILT_TIME_UTC: &str = r"Fri, 25 Mar 2022 16:35:37 +0000";
Expand description
The build time in RFC2822, UTC.
use std::collections::BTreeSet;
use map_gui::tools::checkbox_per_mode;
@@ -564,13 +575,22 @@
.btn_prev()
.hotkey(Key::LeftArrow)
.build_widget(ctx, "previous"),
- "path X/Y".text_widget(ctx).named("pointer").centered_vert(),
+ "route X/Y"
+ .text_widget(ctx)
+ .named("pointer")
+ .centered_vert(),
ctx.style()
.btn_next()
.hotkey(Key::RightArrow)
.build_widget(ctx, "next"),
])
.evenly_spaced(),
+ Line("Route before any modal filters")
+ .fg(*colors::PLAN_ROUTE_BEFORE)
+ .into_widget(ctx),
+ Line("Route after modal filters")
+ .fg(*colors::PLAN_ROUTE_AFTER)
+ .into_widget(ctx),
]))
.aligned(HorizontalAlignment::Center, VerticalAlignment::Top)
.build(ctx),
@@ -586,7 +606,7 @@
self.panel.replace(
ctx,
"pointer",
- format!("path {}/{}", self.current + 1, self.paths.len()).text_widget(ctx),
+ format!("route {}/{}", self.current + 1, self.paths.len()).text_widget(ctx),
);
let mut batch = GeomBatch::new();
@@ -601,6 +621,8 @@
*colors::PLAN_ROUTE_AFTER,
pl.make_polygons(5.0 * NORMAL_LANE_THICKNESS),
);
+ batch.append(map_gui::tools::start_marker(ctx, pl.first_pt(), 2.0));
+ batch.append(map_gui::tools::goal_marker(ctx, pl.last_pt(), 2.0));
}
self.draw_paths = ctx.upload(batch);
}
diff --git a/rustdoc/src/map_gui/home/runner/work/abstreet/abstreet/target/debug/build/map_gui-49fc0ec202264eb2/out/built.rs.html b/rustdoc/src/map_gui/home/runner/work/abstreet/abstreet/target/debug/build/map_gui-49fc0ec202264eb2/out/built.rs.html
index faade82ba3..8683f9a5c4 100644
--- a/rustdoc/src/map_gui/home/runner/work/abstreet/abstreet/target/debug/build/map_gui-49fc0ec202264eb2/out/built.rs.html
+++ b/rustdoc/src/map_gui/home/runner/work/abstreet/abstreet/target/debug/build/map_gui-49fc0ec202264eb2/out/built.rs.html
@@ -176,7 +176,7 @@
pub const RUSTDOC_VERSION: &str = r"rustdoc 1.59.0 (9d1b2106e 2022-02-23)";
#[doc=r#"The build time in RFC2822, UTC."#]
#[allow(dead_code)]
-pub const BUILT_TIME_UTC: &str = r"Fri, 25 Mar 2022 13:32:04 +0000";
+pub const BUILT_TIME_UTC: &str = r"Fri, 25 Mar 2022 16:35:37 +0000";
#[doc=r#"The target architecture, given by `CARGO_CFG_TARGET_ARCH`."#]
#[allow(dead_code)]
pub const CFG_TARGET_ARCH: &str = r"x86_64";
diff --git a/rustdoc/src/map_gui/render/road.rs.html b/rustdoc/src/map_gui/render/road.rs.html
index cbf5a3f421..66880816aa 100644
--- a/rustdoc/src/map_gui/render/road.rs.html
+++ b/rustdoc/src/map_gui/render/road.rs.html
@@ -196,7 +196,7 @@
194
use std::cell::RefCell;
-use geom::{Distance, PolyLine, Polygon, Pt2D};
+use geom::{Distance, Polygon, Pt2D};
use map_model::{Building, LaneType, Map, Road, RoadID, NORMAL_LANE_THICKNESS};
use widgetry::{Color, Drawable, GeomBatch, GfxCtx, Line, Prerender, Text};