mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-22 22:01:41 +03:00
simplify top-center panel in challenge mode
This commit is contained in:
parent
ec1e3f435b
commit
f78bc6a5ef
@ -48,18 +48,8 @@ pub fn tool_panel(ctx: &mut EventCtx, extra_buttons: Vec<ManagedWidget>) -> Comp
|
||||
pub fn edit_map_panel(ctx: &mut EventCtx, ui: &UI, gameplay: GameplayMode) -> Composite {
|
||||
Composite::new(
|
||||
ezgui::Composite::new(
|
||||
ManagedWidget::row(vec![
|
||||
ManagedWidget::col(vec![
|
||||
ManagedWidget::draw_text(ctx, Text::from(Line("Sandbox"))),
|
||||
ManagedWidget::draw_text(ctx, Text::from(Line(ui.primary.map.get_name()))),
|
||||
]),
|
||||
ManagedWidget::col(vec![
|
||||
Composite::svg_button(
|
||||
ctx,
|
||||
"assets/tools/edit_map.svg",
|
||||
"edit map",
|
||||
lctrl(Key::E),
|
||||
),
|
||||
Composite::svg_button(ctx, "assets/tools/edit_map.svg", "edit map", lctrl(Key::E)),
|
||||
{
|
||||
let edits = ui.primary.map.get_edits();
|
||||
let mut txt = Text::from(Line(&edits.edits_name));
|
||||
@ -68,7 +58,6 @@ pub fn edit_map_panel(ctx: &mut EventCtx, ui: &UI, gameplay: GameplayMode) -> Co
|
||||
}
|
||||
ManagedWidget::draw_text(ctx, txt)
|
||||
},
|
||||
]),
|
||||
])
|
||||
.bg(Color::grey(0.4)),
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user