Add overlay bind toggle

This commit is contained in:
Natsumi
2021-01-04 08:21:23 +13:00
parent 297e514b78
commit 1db8e94dd8
4 changed files with 14 additions and 6 deletions

View File

@@ -5703,6 +5703,7 @@ speechSynthesis.getVoices();
$app.data.visits = 0;
$app.data.openVR = configRepository.getBool('openVR');
$app.data.openVRAlways = configRepository.getBool('openVRAlways');
$app.data.overlaybutton = configRepository.getBool('VRCX_overlaybutton');
$app.data.hidePrivateFromFeed = configRepository.getBool('VRCX_hidePrivateFromFeed');
$app.data.hideLoginsFromFeed = configRepository.getBool('VRCX_hideLoginsFromFeed');
$app.data.hideDevicesFromFeed = configRepository.getBool('VRCX_hideDevicesFromFeed');
@@ -5714,6 +5715,7 @@ speechSynthesis.getVoices();
var saveOpenVROption = function () {
configRepository.setBool('openVR', this.openVR);
configRepository.setBool('openVRAlways', this.openVRAlways);
configRepository.setBool('VRCX_overlaybutton', this.overlaybutton);
configRepository.setBool('VRCX_hidePrivateFromFeed', this.hidePrivateFromFeed);
configRepository.setBool('VRCX_hideLoginsFromFeed', this.hideLoginsFromFeed);
configRepository.setBool('VRCX_hideDevicesFromFeed', this.hideDevicesFromFeed);
@@ -5730,6 +5732,7 @@ speechSynthesis.getVoices();
};
$app.watch.openVR = saveOpenVROption;
$app.watch.openVRAlways = saveOpenVROption;
$app.watch.overlaybutton = saveOpenVROption;
$app.watch.hidePrivateFromFeed = saveOpenVROption;
$app.watch.hideLoginsFromFeed = saveOpenVROption;
$app.watch.hideDevicesFromFeed = saveOpenVROption;

View File

@@ -565,5 +565,5 @@ i.x-user-status.busy {
.options-container-item .name {
display: inline-block;
min-width: 150px
min-width: 175px;
}

View File

@@ -543,16 +543,20 @@ html
div.options-container-item
span * It runs automatically when VRChat is running.
br
span Vive or Other Controller: Grab Button
br
span Oculus Controller: B Button
span Grip: Vive or Other Controllers Grab, Oculus X/A Buttons
br
span Menu: Vive Menu, Index B, Oculus Y/B Buttons
br
div.options-container-item
span.name Enable
el-switch(v-model="openVR")
div.options-container-item
span.name Force Run
span.name Force Run (Opens SteamVR)
el-switch(v-model="openVRAlways" :disabled="!openVR")
div.options-container-item
span.name(style="min-width:137px") Overlay Button
el-switch(v-model="overlaybutton" inactive-text="Grip" active-text="Menu" :disabled="!openVR")
div.options-container-item
span.name Hide VR Devices
el-switch(v-model="hideDevicesFromFeed" :disabled="!openVR")
@@ -572,7 +576,7 @@ html
span.name Notification TTS
el-switch(v-model="notificationTTS" :disabled="!openVR")
div.options-container-item
span.name TTS Voice
span.name Text-to-Speech Voice
el-dropdown(@command="(voice) => changeTTSVoice(voice)" trigger="click" size="small")
el-button(v-text="TTSvoices[notificationTTSVoice].name" size="mini" :disabled="!openVR || !notificationTTS")
el-dropdown-menu(#default="dropdown")