mirror of
https://github.com/deunix-educ/PyQuest.git
synced 2026-11-25 08:19:44 +01:00
Remove the author-mode setting (stray 'null' text in settings); author.html is reached by its URL
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -11,7 +11,6 @@ export const DEFAULT_SETTINGS = Object.freeze({
|
||||
voiceEnabled: true, // le bouton « Écouter » ne lit jamais automatiquement : un clic à chaque fois
|
||||
voiceRate: 1,
|
||||
guideEnabled: true, // personnage-guide (bulles d'encouragement)
|
||||
authorMode: false, // affiche le lien vers l'éditeur de niveaux (mode auteur)
|
||||
});
|
||||
|
||||
export class SettingsStore extends EventTarget {
|
||||
|
||||
@@ -58,8 +58,6 @@
|
||||
"settings.theme.light": "Light",
|
||||
"settings.theme.dark": "Dark",
|
||||
"settings.guide": "Guide character",
|
||||
"settings.author": "Author mode",
|
||||
"settings.authorOpen": "Open the level editor",
|
||||
"settings.sound": "Sound effects",
|
||||
"settings.volume": "Volume",
|
||||
"settings.voice": "Voice",
|
||||
|
||||
@@ -58,8 +58,6 @@
|
||||
"settings.theme.light": "Clair",
|
||||
"settings.theme.dark": "Sombre",
|
||||
"settings.guide": "Personnage-guide",
|
||||
"settings.author": "Mode auteur",
|
||||
"settings.authorOpen": "Ouvrir l'éditeur de niveaux",
|
||||
"settings.sound": "Effets sonores",
|
||||
"settings.volume": "Volume",
|
||||
"settings.voice": "Voix",
|
||||
|
||||
@@ -47,10 +47,8 @@ export class SettingsPanel extends EventTarget {
|
||||
this.#testButton('settings.testVoice', 'voice'),
|
||||
this.#voicesRoot,
|
||||
this.#field('settings.voiceRate', 'range', { value: settings.voiceRate, min: 0.5, max: 2, step: 0.1, key: 'voiceRate', number: true }),
|
||||
this.#field('settings.author', 'checkbox', { value: settings.authorMode, key: 'authorMode' }),
|
||||
this.#backupSection(),
|
||||
this.#syncRoot,
|
||||
settings.authorMode ? el('a', { class: 'btn author-link', href: 'author.html', text: t('settings.authorOpen') }) : null,
|
||||
);
|
||||
this.#renderSync();
|
||||
this.#renderVoices();
|
||||
|
||||
Reference in New Issue
Block a user