mirror of
https://framagit.org/JonathanMM/sutom.git
synced 2024-06-10 09:52:13 +02:00
Fin du jeu
This commit is contained in:
parent
c6cdd5ea95
commit
2aaee448ff
26
ts/finDuJeuPanel.ts
Normal file
26
ts/finDuJeuPanel.ts
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
import PanelManager from "./panelManager";
|
||||||
|
|
||||||
|
export default class FinDuJeuPanel {
|
||||||
|
private readonly _panelManager: PanelManager;
|
||||||
|
|
||||||
|
public constructor(panelManager: PanelManager) {
|
||||||
|
this._panelManager = panelManager;
|
||||||
|
}
|
||||||
|
|
||||||
|
public afficher(): void {
|
||||||
|
let titre = "Fermeture de SUTOM";
|
||||||
|
let contenu =
|
||||||
|
"<p>" +
|
||||||
|
"Suite à une demande de la part de France Télévisions de ne plus utiliser le mot « SUTOM », j'ai décidé de fermer le jeu.<br />" +
|
||||||
|
"Le dernier mot sera vendredi 25 mars.<br />" +
|
||||||
|
"Merci à toutes les personnes qui ont joué.<br />" +
|
||||||
|
"Vous pouvez retrouver plus d'information concernant cette fermeture sur <a>mon compte twitter, et le thread associé</a>.<br />" +
|
||||||
|
"<br />" +
|
||||||
|
"Jonathan" +
|
||||||
|
"</p>";
|
||||||
|
|
||||||
|
this._panelManager.setContenu(titre, contenu);
|
||||||
|
this._panelManager.setClasses(["regles-panel"]);
|
||||||
|
this._panelManager.afficherPanel();
|
||||||
|
}
|
||||||
|
}
|
|
@ -15,6 +15,7 @@ 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;
|
||||||
|
@ -62,6 +63,8 @@ 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);
|
||||||
|
@ -260,6 +263,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