@@ -26,6 +26,7 @@ import {
2626 isTabDebugOverlayActive ,
2727 setTabDebugOverlayCycleKey ,
2828 setTabDebugOverlayMap ,
29+ setTabDebugOverlayPersistenceKey ,
2930 stepTabDebugOverlayController ,
3031} from '/samples/phase-17/shared/tabDebugOverlayCycle.js' ;
3132import {
@@ -43,6 +44,7 @@ const READY_STATE = 'ready';
4344const RUNNING_STATE = 'running' ;
4445const WON_STATE = 'won' ;
4546const LOST_STATE = 'lost' ;
47+ const DEBUG_OVERLAY_PERSISTENCE_KEY = 'phase17:1708:overlay-index' ;
4648
4749function clamp ( value , min , max ) {
4850 return Math . max ( min , Math . min ( max , value ) ) ;
@@ -91,6 +93,7 @@ export default class RealGameplayMiniGameScene extends Scene {
9193
9294 this . tabDebugOverlays = createTabDebugOverlayController ( ) ;
9395 setTabDebugOverlayCycleKey ( this . tabDebugOverlays , MINI_GAME_DEBUG_CYCLE_KEY ) ;
96+ setTabDebugOverlayPersistenceKey ( this . tabDebugOverlays , DEBUG_OVERLAY_PERSISTENCE_KEY ) ;
9497 this . setDebugOverlayCycleMap ( createMiniGameOverlayCycleMap ( ) , OVERLAY_UI_LAYER ) ;
9598 }
9699
@@ -183,6 +186,10 @@ export default class RealGameplayMiniGameScene extends Scene {
183186 setTabDebugOverlayCycleKey ( this . tabDebugOverlays , cycleKey ) ;
184187 }
185188
189+ setDebugOverlayPersistenceKey ( persistenceKey ) {
190+ setTabDebugOverlayPersistenceKey ( this . tabDebugOverlays , persistenceKey ) ;
191+ }
192+
186193 isDebugOverlayActive ( overlayId ) {
187194 return isTabDebugOverlayActive ( this . tabDebugOverlays , overlayId ) ;
188195 }
0 commit comments