Import launch parameter

This commit is contained in:
Natsumi
2022-10-02 20:02:09 +13:00
parent 664a67e92c
commit 868ec6faf1
2 changed files with 23 additions and 2 deletions

View File

@@ -114,7 +114,12 @@ To install a theme place `custom.css` into your `%AppData%\VRCX` folder then pre
- `vrcx://user/usr_id` open VRCX user dialog.
- `vrcx://avatar/avtr_id` open VRCX avatar dialog.
- `vrcx://world/wrld_id` open VRCX world dialog.
- `vrcx://world/wrld_id:12345` or `vrcx://world/https://vrch.at/shortUrl` open VRCX world dialog with instance.
- `vrcx://world/wrld_id:12345` open VRCX world dialog with instance.
- `vrcx://world/https://vrch.at/0gmbxjpj` open VRCX world dialog with unlocked instance.
- `vrcx://import/avatar/avtr_id,avtr_id...` open VRCX avatar favorites import dialog.
- `vrcx://import/world/wrld_id,wrld_id...` open VRCX world favorites import dialog.
- `vrcx://import/friend/usr_id,usr_id...` open VRCX friend favorites import dialog.
- `vrcx://addavatardb/https://website/vrcx_search.php` open VRCX remote avatar database provider dialog.
## Keyboard shortcuts

View File

@@ -200,7 +200,8 @@ speechSynthesis.getVoices();
observerOptions: {
rootMargin: '0px',
threshold: 0.1
}
},
attempt: 3
});
Vue.use(DataTables);
@@ -19910,6 +19911,21 @@ speechSynthesis.getVoices();
case 'addavatardb':
this.addAvatarProvider(input.replace('addavatardb/', ''));
break;
case 'import':
var type = args[1];
if (!type) break;
var data = input.replace(`import/${type}/`, '');
if (type === 'avatar') {
this.showAvatarImportDialog();
this.worldImportDialog.input = data;
} else if (type === 'world') {
this.showWorldImportDialog();
this.worldImportDialog.input = data;
} else if (type === 'friend') {
this.showFriendImportDialog();
this.friendImportDialog.input = data;
}
break;
}
};