mirror of
https://framagit.org/JonathanMM/sutom.git
synced 2024-05-19 06:06:35 +02:00
Retrait du panel de fin de jeu
This commit is contained in:
parent
14f4a73b5c
commit
4d1033223f
|
@ -140,7 +140,7 @@ export default class FinDePartiePanel {
|
|||
} else {
|
||||
if (this._estVictoire) {
|
||||
titre = "Félicitations";
|
||||
contenu += '<p class="fin-de-partie-panel-phrase">Bravo, tu as gagné. Merci d\'avoir joué :)</p>';
|
||||
contenu += '<p class="fin-de-partie-panel-phrase">Bravo, tu as gagné. Reviens demain pour une nouvelle grille.</p>';
|
||||
} else {
|
||||
titre = "Perdu";
|
||||
contenu +=
|
||||
|
@ -148,7 +148,7 @@ export default class FinDePartiePanel {
|
|||
Le mot à trouver était : ' +
|
||||
this._motATrouver +
|
||||
"<br /> \
|
||||
Merci d'avoir joué :) \
|
||||
Peut-être feras-tu mieux demain ? \
|
||||
</p>";
|
||||
}
|
||||
contenu +=
|
||||
|
|
|
@ -1,24 +0,0 @@
|
|||
import PanelManager from "./panelManager";
|
||||
|
||||
export default class FinDuJeuPanel {
|
||||
private readonly _panelManager: PanelManager;
|
||||
|
||||
public constructor(panelManager: PanelManager) {
|
||||
this._panelManager = panelManager;
|
||||
}
|
||||
|
||||
public afficher(): void {
|
||||
let titre = "SUTOM continue";
|
||||
let contenu =
|
||||
"<p>" +
|
||||
"Suite à la prise de contact de France Télévisions, des discussions ont été entamées, et j'ai le plaisir de vous annoncer que le jeu restera en ligne !<br />" +
|
||||
"Merci à toutes et tous pour votre incroyable soutien et tous vos gentils messages :)<br />" +
|
||||
"<br />" +
|
||||
"Jonathan" +
|
||||
"</p>";
|
||||
|
||||
this._panelManager.setContenu(titre, contenu);
|
||||
this._panelManager.setClasses(["regles-panel"]);
|
||||
this._panelManager.afficherPanel();
|
||||
}
|
||||
}
|
|
@ -15,7 +15,6 @@ import ConfigurationPanel from "./configurationPanel";
|
|||
import AudioPanel from "./audioPanel";
|
||||
import ThemeManager from "./themeManager";
|
||||
import InstanceConfiguration from "./instanceConfiguration";
|
||||
import FinDuJeuPanel from "./finDuJeuPanel";
|
||||
|
||||
export default class Gestionnaire {
|
||||
private _grille: Grille | null = null;
|
||||
|
@ -63,8 +62,6 @@ export default class Gestionnaire {
|
|||
this._resultats = new Array<Array<LettreResultat>>();
|
||||
this._audioPanel = new AudioPanel(this._config);
|
||||
this._panelManager = new PanelManager();
|
||||
let finDuJeuPanel = new FinDuJeuPanel(this._panelManager);
|
||||
finDuJeuPanel.afficher();
|
||||
this._themeManager = new ThemeManager(this._config);
|
||||
this._reglesPanel = new ReglesPanel(this._panelManager);
|
||||
this._finDePartiePanel = new FinDePartiePanel(this._datePartieEnCours, this._panelManager);
|
||||
|
@ -263,6 +260,6 @@ export default class Gestionnaire {
|
|||
private afficherReglesSiNecessaire(): void {
|
||||
if (this._config.afficherRegles !== undefined && !this._config.afficherRegles) return;
|
||||
|
||||
// this._reglesPanel.afficher();
|
||||
this._reglesPanel.afficher();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue