mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-24 23:15:24 +03:00
Import pedestrian plaza areas, just for rendering. #458
Not regenerating everything yet.
This commit is contained in:
parent
322fb81a9d
commit
ec8c37ab05
@ -574,5 +574,9 @@ fn get_area_type(tags: &Tags) -> Option<AreaType> {
|
||||
return Some(AreaType::Island);
|
||||
}
|
||||
|
||||
if tags.is(osm::HIGHWAY, "pedestrian") {
|
||||
return Some(AreaType::PedestrianPlaza);
|
||||
}
|
||||
|
||||
None
|
||||
}
|
||||
|
@ -119,6 +119,7 @@ pub struct ColorScheme {
|
||||
pub grass: Fill,
|
||||
pub water: Fill,
|
||||
pub median_strip: Fill,
|
||||
pub pedestrian_plaza: Fill,
|
||||
|
||||
// Unzoomed dynamic elements
|
||||
pub unzoomed_car: Color,
|
||||
@ -245,6 +246,7 @@ impl ColorScheme {
|
||||
grass: hex("#94C84A").into(),
|
||||
water: Color::rgb(164, 200, 234).into(),
|
||||
median_strip: Color::CYAN.into(),
|
||||
pedestrian_plaza: Color::hex("#DDDDE8").into(),
|
||||
|
||||
// Unzoomed dynamic elements
|
||||
unzoomed_car: hex("#A32015"),
|
||||
|
@ -41,6 +41,7 @@ impl DrawArea {
|
||||
AreaType::Water => cs.water.clone(),
|
||||
AreaType::Island => cs.map_background.clone(),
|
||||
AreaType::MedianStrip => cs.median_strip.clone(),
|
||||
AreaType::PedestrianPlaza => cs.pedestrian_plaza.clone(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -28,6 +28,7 @@ pub enum AreaType {
|
||||
Water,
|
||||
Island,
|
||||
MedianStrip,
|
||||
PedestrianPlaza,
|
||||
}
|
||||
|
||||
/// Areas are just used for drawing.
|
||||
|
Loading…
Reference in New Issue
Block a user