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
+7
View File
@@ -20,6 +20,11 @@ interface IDefaultSettings {
*/
CodeInstructionRunTime: number;
/**
* Render city as list of buttons.
*/
DisableASCIIArt: boolean;
/**
* Whether global keyboard shortcuts should be recognized throughout the game.
*/
@@ -101,6 +106,7 @@ interface ISettings extends IDefaultSettings {
const defaultSettings: IDefaultSettings = {
AutosaveInterval: 60,
CodeInstructionRunTime: 50,
DisableASCIIArt: false,
DisableHotkeys: false,
Locale: "en",
MaxLogCapacity: 50,
@@ -119,6 +125,7 @@ const defaultSettings: IDefaultSettings = {
export const Settings: ISettings & ISelfInitializer & ISelfLoading = {
AutosaveInterval: defaultSettings.AutosaveInterval,
CodeInstructionRunTime: 25,
DisableASCIIArt: defaultSettings.DisableASCIIArt,
DisableHotkeys: defaultSettings.DisableHotkeys,
Editor: EditorSetting.Ace,
EditorKeybinding: AceKeybindingSetting.Ace,