@@ -21,8 +21,9 @@ const STAGE_ARROW_COOLDOWN = 0.1;
2121@Controller ( { loadOrder : 2 } )
2222export class CheckpointsController implements OnInit , OnDataUpdate , LogStart {
2323 public readonly offsetUpdated = new Signal < ( newStage : number ) => void > ;
24- public readonly inLobbyUpdated = new Signal < ( inLobby : boolean , onlyUpdateButton : boolean ) => void > ;
24+ public readonly inLobbyUpdated = new Signal < ( inLobby : boolean ) => void > ;
2525 public inLobby = true ;
26+ public notLobbyNotObby = false ;
2627 public stage = 0 ;
2728
2829 private stageOffset = 0 ;
@@ -110,15 +111,16 @@ export class CheckpointsController implements OnInit, OnDataUpdate, LogStart {
110111 return clamp ( this . stage + this . stageOffset , 0 , TOTAL_STAGE_COUNT + 1 ) ;
111112 }
112113
113- public setInLobby ( inLobby : boolean , onlyUpdateButton ?: boolean ) : void {
114- if ( ! onlyUpdateButton )
115- this . inLobby = inLobby ;
114+ public setInLobby ( inLobby : boolean ) : void {
115+ if ( inLobby )
116+ this . notLobbyNotObby = false ;
116117
117- this . updateInLobby ( onlyUpdateButton , onlyUpdateButton ? inLobby : undefined ) ;
118+ this . inLobby = inLobby ;
119+ this . updateInLobby ( ) ;
118120 }
119121
120- private updateInLobby ( onlyUpdateButton = false , overrideInLobby ?: boolean ) : void {
121- this . inLobbyUpdated . Fire ( overrideInLobby ?? this . inLobby , onlyUpdateButton ) ;
122+ public updateInLobby ( ) : void {
123+ this . inLobbyUpdated . Fire ( this . inLobby ) ;
122124 }
123125
124126 private update ( advancing = false ) : void {
0 commit comments