From 46b3d94e5fd24900a95554a295257f0891ac1c53 Mon Sep 17 00:00:00 2001 From: Luke Date: Thu, 27 Jun 2024 14:07:48 -0700 Subject: [PATCH] feat: add a debug build label --- tetanes/src/nes/renderer/gui.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tetanes/src/nes/renderer/gui.rs b/tetanes/src/nes/renderer/gui.rs index eff63f49..a2583c0a 100644 --- a/tetanes/src/nes/renderer/gui.rs +++ b/tetanes/src/nes/renderer/gui.rs @@ -523,6 +523,10 @@ impl Gui { ui.menu_button("🖵 Window", |ui| self.window_menu(ui)); ui.menu_button("🕷 Debug", |ui| self.debug_menu(ui)); ui.menu_button("❓ Help", |ui| self.help_menu(ui)); + + ui.with_layout(Layout::right_to_left(Align::Center), |ui| { + egui::warn_if_debug_build(ui); + }); }); }); let spacing = ui.style().spacing.item_spacing;