put dev overlays into settings
This commit is contained in:
parent
adadc8bb3e
commit
dffe8e055a
src
@ -12,6 +12,13 @@ export enum ExtensionEnvironment {
|
||||
Fullscreen = 'fullscreen',
|
||||
}
|
||||
|
||||
export interface DevUiConfig {
|
||||
aardDebugOverlay: {
|
||||
showOnStartup: boolean,
|
||||
showDetectionDetails: boolean,
|
||||
}
|
||||
}
|
||||
|
||||
export interface KeyboardShortcutInterface {
|
||||
key?: string,
|
||||
code?: string,
|
||||
@ -185,6 +192,7 @@ interface SettingsInterface {
|
||||
},
|
||||
},
|
||||
devMode?: boolean,
|
||||
dev: DevUiConfig,
|
||||
}
|
||||
|
||||
restrictions?: RestrictionsSettings;
|
||||
|
@ -83,6 +83,13 @@ const ExtensionConfPatch = [
|
||||
}];
|
||||
|
||||
delete (userOptions as any).actions;
|
||||
|
||||
userOptions.ui.dev = {
|
||||
aardDebugOverlay: {
|
||||
showOnStartup: false,
|
||||
showDetectionDetails: true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
];
|
||||
|
@ -127,6 +127,12 @@ const ExtensionConf: SettingsInterface = {
|
||||
offsetX: -50,
|
||||
offsetY: 0
|
||||
}
|
||||
},
|
||||
dev: {
|
||||
aardDebugOverlay: {
|
||||
showOnStartup: false,
|
||||
showDetectionDetails: true
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user