mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 06:43:51 +02:00
Local world favorites 1
This commit is contained in:
@@ -21309,6 +21309,10 @@ speechSynthesis.getVoices();
|
||||
this.worldDialog.isFavorite =
|
||||
API.cachedFavoritesByObjectId.has(worldId);
|
||||
}
|
||||
|
||||
// update UI
|
||||
this.localWorldFavoriteGroups.sort();
|
||||
this.localWorldFavorites.sort();
|
||||
};
|
||||
|
||||
$app.methods.getLocalWorldFavorites = async function () {
|
||||
@@ -21363,6 +21367,14 @@ speechSynthesis.getVoices();
|
||||
return false;
|
||||
};
|
||||
|
||||
$app.methods.getLocalWorldFavoriteGroupLength = function (group) {
|
||||
var favoriteGroup = this.localWorldFavorites[group];
|
||||
if (!favoriteGroup) {
|
||||
return 0;
|
||||
}
|
||||
return favoriteGroup.length;
|
||||
};
|
||||
|
||||
$app.methods.promptNewLocalWorldFavoriteGroup = function () {
|
||||
this.$prompt('Enter a world favorite group name', 'New Group', {
|
||||
distinguishCancelAndClose: true,
|
||||
|
||||
Reference in New Issue
Block a user