mirror of
https://framagit.org/JonathanMM/sutom.git
synced 2024-06-10 09:52:13 +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 {
|
} else {
|
||||||
if (this._estVictoire) {
|
if (this._estVictoire) {
|
||||||
titre = "Félicitations";
|
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 {
|
} else {
|
||||||
titre = "Perdu";
|
titre = "Perdu";
|
||||||
contenu +=
|
contenu +=
|
||||||
|
@ -148,7 +148,7 @@ export default class FinDePartiePanel {
|
||||||
Le mot à trouver était : ' +
|
Le mot à trouver était : ' +
|
||||||
this._motATrouver +
|
this._motATrouver +
|
||||||
"<br /> \
|
"<br /> \
|
||||||
Merci d'avoir joué :) \
|
Peut-être feras-tu mieux demain ? \
|
||||||
</p>";
|
</p>";
|
||||||
}
|
}
|
||||||
contenu +=
|
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 AudioPanel from "./audioPanel";
|
||||||
import ThemeManager from "./themeManager";
|
import ThemeManager from "./themeManager";
|
||||||
import InstanceConfiguration from "./instanceConfiguration";
|
import InstanceConfiguration from "./instanceConfiguration";
|
||||||
import FinDuJeuPanel from "./finDuJeuPanel";
|
|
||||||
|
|
||||||
export default class Gestionnaire {
|
export default class Gestionnaire {
|
||||||
private _grille: Grille | null = null;
|
private _grille: Grille | null = null;
|
||||||
|
@ -63,8 +62,6 @@ export default class Gestionnaire {
|
||||||
this._resultats = new Array<Array<LettreResultat>>();
|
this._resultats = new Array<Array<LettreResultat>>();
|
||||||
this._audioPanel = new AudioPanel(this._config);
|
this._audioPanel = new AudioPanel(this._config);
|
||||||
this._panelManager = new PanelManager();
|
this._panelManager = new PanelManager();
|
||||||
let finDuJeuPanel = new FinDuJeuPanel(this._panelManager);
|
|
||||||
finDuJeuPanel.afficher();
|
|
||||||
this._themeManager = new ThemeManager(this._config);
|
this._themeManager = new ThemeManager(this._config);
|
||||||
this._reglesPanel = new ReglesPanel(this._panelManager);
|
this._reglesPanel = new ReglesPanel(this._panelManager);
|
||||||
this._finDePartiePanel = new FinDePartiePanel(this._datePartieEnCours, this._panelManager);
|
this._finDePartiePanel = new FinDePartiePanel(this._datePartieEnCours, this._panelManager);
|
||||||
|
@ -263,6 +260,6 @@ export default class Gestionnaire {
|
||||||
private afficherReglesSiNecessaire(): void {
|
private afficherReglesSiNecessaire(): void {
|
||||||
if (this._config.afficherRegles !== undefined && !this._config.afficherRegles) return;
|
if (this._config.afficherRegles !== undefined && !this._config.afficherRegles) return;
|
||||||
|
|
||||||
// this._reglesPanel.afficher();
|
this._reglesPanel.afficher();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue