mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-20 16:22:56 +02:00
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:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user