add new options to settings interface
This commit is contained in:
parent
4853d7e2fd
commit
2337f7a3ba
@ -214,6 +214,8 @@ interface SettingsInterface {
|
|||||||
ui: {
|
ui: {
|
||||||
inPlayer: {
|
inPlayer: {
|
||||||
enabled: boolean,
|
enabled: boolean,
|
||||||
|
enabledFullscreenOnly: boolean,
|
||||||
|
popupAlignment: 'left' | 'right',
|
||||||
minEnabledWidth: number, // don't show UI if player is narrower than % of screen width
|
minEnabledWidth: number, // don't show UI if player is narrower than % of screen width
|
||||||
activation: 'trigger-zone' | 'player', // what needs to be hovered in order for UI to be visible
|
activation: 'trigger-zone' | 'player', // what needs to be hovered in order for UI to be visible
|
||||||
triggerZoneDimensions: { // how large the trigger zone is (relative to player size)
|
triggerZoneDimensions: { // how large the trigger zone is (relative to player size)
|
||||||
|
@ -169,8 +169,10 @@ const ExtensionConfPatch = [
|
|||||||
userOptions.ui = {
|
userOptions.ui = {
|
||||||
inPlayer: {
|
inPlayer: {
|
||||||
enabled: true, // enable by default on new installs
|
enabled: true, // enable by default on new installs
|
||||||
|
enabledFullscreenOnly: false,
|
||||||
minEnabledWidth: 0.75,
|
minEnabledWidth: 0.75,
|
||||||
activation: 'player',
|
activation: 'player',
|
||||||
|
popupAlignment: 'left',
|
||||||
triggerZoneDimensions: {
|
triggerZoneDimensions: {
|
||||||
width: 0.5,
|
width: 0.5,
|
||||||
height: 0.5,
|
height: 0.5,
|
||||||
|
@ -160,8 +160,10 @@ const ExtensionConf: SettingsInterface = {
|
|||||||
ui: {
|
ui: {
|
||||||
inPlayer: {
|
inPlayer: {
|
||||||
enabled: true, // enable by default on new installs
|
enabled: true, // enable by default on new installs
|
||||||
|
enabledFullscreenOnly: false,
|
||||||
minEnabledWidth: 0.75,
|
minEnabledWidth: 0.75,
|
||||||
activation: 'player',
|
activation: 'player',
|
||||||
|
popupAlignment: 'left',
|
||||||
triggerZoneDimensions: {
|
triggerZoneDimensions: {
|
||||||
width: 0.5,
|
width: 0.5,
|
||||||
height: 0.5,
|
height: 0.5,
|
||||||
|
Loading…
Reference in New Issue
Block a user