mirror of
https://framagit.org/JonathanMM/sutom.git
synced 2024-05-26 02:22:12 +02:00
Suppression de la disparition des règles à la fin de la partie
This commit is contained in:
parent
535b55cdab
commit
ebd51ec9d8
|
@ -3,7 +3,6 @@ import { LettreStatut } from "./lettreStatut";
|
||||||
import NotificationMessage from "./notificationMessage";
|
import NotificationMessage from "./notificationMessage";
|
||||||
|
|
||||||
export default class FinDePartiePanel {
|
export default class FinDePartiePanel {
|
||||||
private readonly _reglesPanel: HTMLElement;
|
|
||||||
private readonly _finDePartiePanel: HTMLElement;
|
private readonly _finDePartiePanel: HTMLElement;
|
||||||
private readonly _victoirePanel: HTMLElement;
|
private readonly _victoirePanel: HTMLElement;
|
||||||
private readonly _defaitePanel: HTMLElement;
|
private readonly _defaitePanel: HTMLElement;
|
||||||
|
@ -14,7 +13,6 @@ export default class FinDePartiePanel {
|
||||||
private _resumeTexte: string = "";
|
private _resumeTexte: string = "";
|
||||||
|
|
||||||
public constructor() {
|
public constructor() {
|
||||||
this._reglesPanel = document.getElementById("regles-panel") as HTMLElement;
|
|
||||||
this._finDePartiePanel = document.getElementById("fin-de-partie-panel") as HTMLElement;
|
this._finDePartiePanel = document.getElementById("fin-de-partie-panel") as HTMLElement;
|
||||||
this._victoirePanel = document.getElementById("victoire-panel") as HTMLElement;
|
this._victoirePanel = document.getElementById("victoire-panel") as HTMLElement;
|
||||||
this._defaitePanel = document.getElementById("defaite-panel") as HTMLElement;
|
this._defaitePanel = document.getElementById("defaite-panel") as HTMLElement;
|
||||||
|
@ -59,7 +57,6 @@ export default class FinDePartiePanel {
|
||||||
}
|
}
|
||||||
|
|
||||||
public afficher(estVictoire: boolean, motATrouver: string): void {
|
public afficher(estVictoire: boolean, motATrouver: string): void {
|
||||||
this._reglesPanel.style.display = "none";
|
|
||||||
this._finDePartiePanel.style.display = "block";
|
this._finDePartiePanel.style.display = "block";
|
||||||
|
|
||||||
if (estVictoire) this._victoirePanel.style.display = "block";
|
if (estVictoire) this._victoirePanel.style.display = "block";
|
||||||
|
|
Loading…
Reference in a new issue