From 35cfe8d88ce81d8a7356559a386e73007d078764 Mon Sep 17 00:00:00 2001 From: Hans Kokx Date: Mon, 23 Mar 2026 11:24:29 +0100 Subject: [PATCH] feat: Conditionally display debug tools button based on debug mode and engine difficulty Signed-off-by: Hans Kokx --- apps/wolf_3d_gui/lib/screens/game_screen.dart | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/apps/wolf_3d_gui/lib/screens/game_screen.dart b/apps/wolf_3d_gui/lib/screens/game_screen.dart index 4b90fd3..a62c1fe 100644 --- a/apps/wolf_3d_gui/lib/screens/game_screen.dart +++ b/apps/wolf_3d_gui/lib/screens/game_screen.dart @@ -218,11 +218,13 @@ class _GameScreenState extends State { } }, child: Scaffold( - floatingActionButton: FloatingActionButton( - onPressed: _openDebugTools, - tooltip: 'Open Debug Tools', - child: const Icon(Icons.bug_report), - ), + floatingActionButton: kDebugMode && _engine.difficulty != null + ? FloatingActionButton( + onPressed: _openDebugTools, + tooltip: 'Open Debug Tools', + child: const Icon(Icons.bug_report), + ) + : null, body: LayoutBuilder( builder: (context, constraints) { return Listener(