Added Disable ASCII art to options (#832)

* hotfix getPlayer missing factions

* Added ability to disable ascii art in options. ASCII art is impossible to deal with for screenreaders.
This commit is contained in:
hydroflame
2021-04-02 20:14:35 -04:00
committed by GitHub
parent 708c73fa0f
commit 6f330efc44
7 changed files with 98 additions and 5 deletions
+6
View File
@@ -23,6 +23,7 @@ function setSettingsLabels() {
const suppressHospitalizationPopup = document.getElementById("settingsSuppressHospitalizationPopup");
const autosaveInterval = document.getElementById("settingsAutosaveIntervalValLabel");
const disableHotkeys = document.getElementById("settingsDisableHotkeys");
const disableASCIIArt = document.getElementById("settingsDisableASCIIArt");
const locale = document.getElementById("settingsLocale");
//Initialize values on labels
@@ -36,6 +37,7 @@ function setSettingsLabels() {
suppressHospitalizationPopup.checked = Settings.SuppressHospitalizationPopup;
setAutosaveLabel(autosaveInterval);
disableHotkeys.checked = Settings.DisableHotkeys;
disableASCIIArt.checked = Settings.CityListView;
locale.value = Settings.Locale;
numeralWrapper.updateLocale(Settings.Locale); //Initialize locale
@@ -99,6 +101,10 @@ function setSettingsLabels() {
Settings.DisableHotkeys = this.checked;
}
disableASCIIArt.onclick = function() {
Settings.DisableASCIIArt = this.checked;
}
//Locale selector
locale.onchange = function() {
if (!numeralWrapper.updateLocale(locale.value)) {