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