Function ltn::per_neighborhood::handle_world_outcome [−][src]
pub fn handle_world_outcome(
ctx: &mut EventCtx<'_>,
app: &mut SimpleApp<Session>,
outcome: WorldOutcome<FilterableObj>
) -> bool
Expand description
If true, the neighborhood has changed and the caller should recalculate stuff, including the +
Function ltn::per_neighborhood::handle_world_outcome [−][src]
pub fn handle_world_outcome(
ctx: &mut EventCtx<'_>,
app: &mut SimpleApp<Session>,
outcome: WorldOutcome<FilterableObj>
) -> bool
Expand description
If true, the neighborhood has changed and the caller should recalculate stuff, including the panel
Function ltn::per_neighborhood::populate_world [−][src]
pub fn populate_world<T: ObjectID, F: Fn(FilterableObj) -> T>(
ctx: &mut EventCtx<'_>,
app: &SimpleApp<Session>,
neighborhood: &Neighborhood,
world: &mut World<T>,
wrap_id: F,
zorder: usize
)
Expand description
Adds clickable objects for managing filters on roads and intersections. The caller is +
Function ltn::per_neighborhood::populate_world [−][src]
pub fn populate_world<T: ObjectID, F: Fn(FilterableObj) -> T>(
ctx: &mut EventCtx<'_>,
app: &SimpleApp<Session>,
neighborhood: &Neighborhood,
world: &mut World<T>,
wrap_id: F,
zorder: usize
)
Expand description
Adds clickable objects for managing filters on roads and intersections. The caller is responsible for base drawing behavior, initialize_hover, etc.
Module ltn::per_neighborhood [−][src]
Enums
+Module ltn::per_neighborhood [−][src]
Enums
Functions
If true, the neighborhood has changed and the caller should recalculate stuff, including the panel
diff --git a/rustdoc/map_gui/tools/title_screen/built_info/constant.BUILT_TIME_UTC.html b/rustdoc/map_gui/tools/title_screen/built_info/constant.BUILT_TIME_UTC.html index 32a9ce68d4..89a3a8a377 100644 --- a/rustdoc/map_gui/tools/title_screen/built_info/constant.BUILT_TIME_UTC.html +++ b/rustdoc/map_gui/tools/title_screen/built_info/constant.BUILT_TIME_UTC.html @@ -1,4 +1,4 @@Constant map_gui::tools::title_screen::built_info::BUILT_TIME_UTC [−][src]
pub const BUILT_TIME_UTC: &str = r"Tue, 01 Feb 2022 11:00:47 +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"Tue, 01 Feb 2022 15:06:10 +0000";
Expand description
The build time in RFC2822, UTC.
use geom::Distance;
-use map_gui::tools::{CityPicker, Navigator};
+use map_gui::tools::{open_browser, CityPicker, Navigator};
use map_model::{IntersectionID, PathConstraints, RoadID};
use widgetry::mapspace::{ObjectID, World, WorldOutcome};
use widgetry::{
@@ -448,6 +458,7 @@
.zorder(zorder)
.drawn_in_master_batch()
.hover_outline(Color::BLACK, Distance::meters(5.0))
+ .hotkey(lctrl(Key::D), "debug")
.clickable()
.build(ctx);
}
@@ -460,6 +471,7 @@
.drawn_in_master_batch()
.hover_outline(Color::BLACK, Distance::meters(5.0))
.clickable()
+ .hotkey(lctrl(Key::D), "debug")
.build(ctx);
}
}
@@ -522,6 +534,14 @@
}
true
}
+ WorldOutcome::Keypress("debug", FilterableObj::InteriorIntersection(i)) => {
+ open_browser(app.map.get_i(i).orig_id.to_string());
+ false
+ }
+ WorldOutcome::Keypress("debug", FilterableObj::InteriorRoad(r)) => {
+ open_browser(app.map.get_r(r).orig_id.osm_way_id.to_string());
+ false
+ }
_ => false,
}
}
diff --git a/rustdoc/src/map_gui/home/runner/work/abstreet/abstreet/target/debug/build/map_gui-c32b77646ab1d63c/out/built.rs.html b/rustdoc/src/map_gui/home/runner/work/abstreet/abstreet/target/debug/build/map_gui-c32b77646ab1d63c/out/built.rs.html
index 179fcdd0a3..554519c16a 100644
--- a/rustdoc/src/map_gui/home/runner/work/abstreet/abstreet/target/debug/build/map_gui-c32b77646ab1d63c/out/built.rs.html
+++ b/rustdoc/src/map_gui/home/runner/work/abstreet/abstreet/target/debug/build/map_gui-c32b77646ab1d63c/out/built.rs.html
@@ -175,7 +175,7 @@
pub const RUSTDOC_VERSION: &str = r"rustdoc 1.58.1 (db9d1b20b 2022-01-20)";
#[doc=r#"The build time in RFC2822, UTC."#]
#[allow(dead_code)]
-pub const BUILT_TIME_UTC: &str = r"Tue, 01 Feb 2022 11:00:47 +0000";
+pub const BUILT_TIME_UTC: &str = r"Tue, 01 Feb 2022 15:06:10 +0000";
#[doc=r#"The target architecture, given by `CARGO_CFG_TARGET_ARCH`."#]
#[allow(dead_code)]
pub const CFG_TARGET_ARCH: &str = r"x86_64";