mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-24 15:02:59 +03:00
organize trip controls vs. route controls
The file mgmt and waypoints are part of the "trip" The toggles and details are part of the route. I considered combining the toggle section into the "route details" section but... decided against it to delineate "input" from "output". I could be persuaded to keep iterating on this...
This commit is contained in:
parent
738c4ab865
commit
5e592447b7
@ -133,7 +133,6 @@ impl TripManagement {
|
||||
.build_widget(ctx, "next trip"),
|
||||
]),
|
||||
])
|
||||
.section(ctx)
|
||||
}
|
||||
|
||||
pub fn on_click(&mut self, ctx: &mut EventCtx, app: &App, action: &str) -> Option<Transition> {
|
||||
|
@ -119,7 +119,12 @@ impl TripPlanner {
|
||||
|
||||
fn update_input_panel(&mut self, ctx: &mut EventCtx, app: &App, main_route: Widget) {
|
||||
let col = Widget::col(vec![
|
||||
self.files.get_panel_widget(ctx),
|
||||
Widget::col(vec![
|
||||
self.files.get_panel_widget(ctx),
|
||||
Widget::horiz_separator(ctx, 1.0),
|
||||
self.waypoints.get_panel_widget(ctx),
|
||||
])
|
||||
.section(ctx),
|
||||
Widget::row(vec![
|
||||
Toggle::checkbox(
|
||||
ctx,
|
||||
@ -135,7 +140,6 @@ impl TripPlanner {
|
||||
),
|
||||
])
|
||||
.section(ctx),
|
||||
self.waypoints.get_panel_widget(ctx).section(ctx),
|
||||
main_route.section(ctx),
|
||||
]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user