From ef3fed71d9a4c18ccbebccce19eadeafa6dc0a6f Mon Sep 17 00:00:00 2001 From: Jochum van der Ploeg Date: Fri, 22 Apr 2022 17:35:10 +0200 Subject: [PATCH] feat: add debug information --- lib/game/pinball_game.dart | 2 +- .../pinball_components/lib/src/components/render_priority.dart | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/game/pinball_game.dart b/lib/game/pinball_game.dart index 35a792af..ebc135b8 100644 --- a/lib/game/pinball_game.dart +++ b/lib/game/pinball_game.dart @@ -195,7 +195,7 @@ class _DebugGameBallsController extends _GameBallsController { } class _DebugInformation extends Component with HasGameRef { - _DebugInformation() : super(priority: 0x7fffffff); + _DebugInformation() : super(priority: RenderPriority.debugInfo); @override PositionType get positionType => PositionType.widget; diff --git a/packages/pinball_components/lib/src/components/render_priority.dart b/packages/pinball_components/lib/src/components/render_priority.dart index b179cce9..39798379 100644 --- a/packages/pinball_components/lib/src/components/render_priority.dart +++ b/packages/pinball_components/lib/src/components/render_priority.dart @@ -113,4 +113,7 @@ abstract class RenderPriority { // Score Text static const int scoreText = _above + spaceshipRampForegroundRailing; + + // Debug information + static const int debugInfo = _above + scoreText; }