fix some score issues
This commit is contained in:
parent
63896d10c8
commit
f9bee84194
3 changed files with 4 additions and 3 deletions
|
|
@ -31,12 +31,12 @@ const store = create<State>((set) => ({
|
||||||
uid: null,
|
uid: null,
|
||||||
showScore: false,
|
showScore: false,
|
||||||
showOvScore: true,
|
showOvScore: true,
|
||||||
currentIntroStep: 0,
|
currentIntroStep: 1,
|
||||||
revealablesFinished: 0,
|
revealablesFinished: 0,
|
||||||
currentScene: Scenes.OVERVIEW,
|
currentScene: Scenes.OVERVIEW,
|
||||||
currentSubproject: null,
|
currentSubproject: null,
|
||||||
participantAnonymous: false,
|
participantAnonymous: false,
|
||||||
companionState: CompanionState.IDLE,
|
companionState: CompanionState.ACTIVE,
|
||||||
infoMessageShown: false,
|
infoMessageShown: false,
|
||||||
infoMessages: [],
|
infoMessages: [],
|
||||||
finishedGame: false,
|
finishedGame: false,
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
import { logger } from '../logger';
|
import { logger } from '../logger';
|
||||||
import { Scenes } from '../scenes/scenes';
|
import { Scenes } from '../scenes/scenes';
|
||||||
import store from '../store';
|
import store from '../store';
|
||||||
|
import { CompanionState } from './companion';
|
||||||
|
|
||||||
export class Intro {
|
export class Intro {
|
||||||
currentStep: number;
|
currentStep: number;
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ export class OvScore {
|
||||||
}
|
}
|
||||||
|
|
||||||
store.subscribe((state) => {
|
store.subscribe((state) => {
|
||||||
if (state.showOvScore) {
|
if (state.showOvScore && !state.showScore) {
|
||||||
this.scoreRef.style.display = 'flex';
|
this.scoreRef.style.display = 'flex';
|
||||||
} else {
|
} else {
|
||||||
this.scoreRef.style.display = 'none';
|
this.scoreRef.style.display = 'none';
|
||||||
|
|
|
||||||
Reference in a new issue