mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-19 10:31:24 +01:00
Merge branch 'master' of https://github.com/Azgaar/Fantasy-Map-Generator into ai-assistant
This commit is contained in:
commit
dadb0cad8c
61 changed files with 2831 additions and 2928 deletions
|
|
@ -251,8 +251,7 @@ const voiceInterval = setInterval(function () {
|
|||
select.options.add(new Option(voice.name, i, false));
|
||||
});
|
||||
if (stored("speakerVoice")) select.value = stored("speakerVoice");
|
||||
// se voice to store
|
||||
else select.value = voices.findIndex(voice => voice.lang === "en-US"); // or to first found English-US
|
||||
else select.value = voices.findIndex(voice => voice.lang === "en-US");
|
||||
}, 1000);
|
||||
|
||||
function testSpeaker() {
|
||||
|
|
@ -704,12 +703,6 @@ async function openTemplateSelectionDialog() {
|
|||
HeightmapSelectionDialog.open();
|
||||
}
|
||||
|
||||
// remove all saved data from LocalStorage and reload the page
|
||||
function restoreDefaultOptions() {
|
||||
localStorage.clear();
|
||||
location.reload();
|
||||
}
|
||||
|
||||
// Sticked menu Options listeners
|
||||
byId("sticked").addEventListener("click", function (event) {
|
||||
const id = event.target.id;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue