config.json editor 1

This commit is contained in:
Natsumi
2021-05-04 00:48:45 +12:00
parent 1d826ddf68
commit 45319e613b
2 changed files with 11 additions and 10 deletions

View File

@@ -10912,10 +10912,11 @@ speechSynthesis.getVoices();
$app.data.VRChatConfigFile = {}; $app.data.VRChatConfigFile = {};
$app.data.VRChatConfigList = { $app.data.VRChatConfigList = {
cache_size: 'Max Cache Size in Gigabytes (minimum 20)', cache_size: { name: 'Max Cache Size in Gigabytes (minimum 20)', default: '20' },
cache_expiry_delay: 'Expire Cache in Days (minimum 30)', cache_expiry_delay: { name: 'Expire Cache in Days (minimum 30)', default: '30' },
dynamic_bone_max_affected_transform_count: 'Dynamic Bones Limit Max Transforms (0 disables all components)', cache_directory: { name: 'Custom Cache Directory Location', default: '%AppData%\\..\\LocalLow\\VRChat\\vrchat' },
dynamic_bone_max_collider_check_count: 'Dynamic Bones Limit Max Collider Collisions (0 disables all components)' dynamic_bone_max_affected_transform_count: { name: 'Dynamic Bones Limit Max Transforms (0 disables all components)', default: '32' },
dynamic_bone_max_collider_check_count: { name: 'Dynamic Bones Limit Max Collider Collisions (0 disables all components)', default: '8' }
}; };
$app.methods.ReadVRChatConfigFile = async function () { $app.methods.ReadVRChatConfigFile = async function () {
@@ -10938,7 +10939,7 @@ speechSynthesis.getVoices();
screenshotRes: false screenshotRes: false
}; };
API.$on('LOGOUT', function () { API.$on('LOGIN', function () {
$app.VRChatConfigDialog.visible = false; $app.VRChatConfigDialog.visible = false;
}); });

View File

@@ -1469,14 +1469,14 @@ html
//- dialog: VRChat Config JSON //- dialog: VRChat Config JSON
el-dialog.x-dialog(ref="VRChatConfigDialog" :visible.sync="VRChatConfigDialog.visible" title="VRChat Config JSON" width="420px") el-dialog.x-dialog(ref="VRChatConfigDialog" :visible.sync="VRChatConfigDialog.visible" title="VRChat Config JSON" width="420px")
div(style='font-size:12px;') div(style='font-size:12px;word-break:keep-all')
| These options are for advanced users only. #[br] | These options are for advanced users only. #[br]
| Leave field empty to set as default. | Leave field empty to set as default, game restart required to apply settings.
br br
div(style="display:inline-block" v-for="(name, value) in VRChatConfigList" :key="value") div(style="display:inline-block" v-for="(item, value) in VRChatConfigList" :key="value")
span(v-text="name" style="word-break:keep-all") span(v-text="item.name" style="word-break:keep-all")
|: |:
el-input(v-model="VRChatConfigFile[value]" size="mini" style="margin-top:10px") el-input(v-model="VRChatConfigFile[value]" :placeholder="item.default" size="mini" style="margin-top:10px")
el-checkbox(v-model="VRChatConfigFile.disableRichPresence" style="margin-top:5px;display:block") Disable Discord Rich Presence el-checkbox(v-model="VRChatConfigFile.disableRichPresence" style="margin-top:5px;display:block") Disable Discord Rich Presence
el-checkbox(v-model="VRChatConfigDialog.cameraRes" style="margin-top:5px") 4K Camera el-checkbox(v-model="VRChatConfigDialog.cameraRes" style="margin-top:5px") 4K Camera
el-checkbox(v-model="VRChatConfigDialog.screenshotRes" style="margin-top:5px") 4K Screenshots el-checkbox(v-model="VRChatConfigDialog.screenshotRes" style="margin-top:5px") 4K Screenshots