mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-11-28 03:35:51 +03:00
draw everything from ezgui in screencap mode
This commit is contained in:
parent
913ec8d4c7
commit
3b6ecbf4af
@ -345,7 +345,9 @@ impl DebugMode {
|
||||
mode.objects.draw(g, &state.ui);
|
||||
mode.neighborhood_summary.draw(g);
|
||||
|
||||
menu.draw(g);
|
||||
if !g.is_screencap() {
|
||||
menu.draw(g);
|
||||
}
|
||||
}
|
||||
State::Polygons(ref debugger) => {
|
||||
let mut opts = DrawOptions::new();
|
||||
|
@ -101,19 +101,17 @@ impl<G: GUI> State<G> {
|
||||
}
|
||||
let naming_hint = g.naming_hint.take();
|
||||
|
||||
if !screenshot {
|
||||
// Always draw the menus last.
|
||||
if let ContextMenu::Displaying(ref menu) = self.context_menu {
|
||||
menu.draw(&mut g);
|
||||
}
|
||||
|
||||
// Always draw text last
|
||||
self.canvas
|
||||
.glyphs
|
||||
.borrow_mut()
|
||||
.draw_queued(display, &mut target);
|
||||
// Always draw the menus last.
|
||||
if let ContextMenu::Displaying(ref menu) = self.context_menu {
|
||||
menu.draw(&mut g);
|
||||
}
|
||||
|
||||
// Always draw text last
|
||||
self.canvas
|
||||
.glyphs
|
||||
.borrow_mut()
|
||||
.draw_queued(display, &mut target);
|
||||
|
||||
target.finish().unwrap();
|
||||
naming_hint
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user