mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-13 11:53:51 +02:00
Avatar scaling tag and toggle option
This commit is contained in:
@@ -16266,6 +16266,7 @@ speechSynthesis.getVoices();
|
||||
isPC: false,
|
||||
isQuest: false,
|
||||
isIos: false,
|
||||
avatarScaling: false,
|
||||
inCache: false,
|
||||
cacheSize: '',
|
||||
fileCreatedAt: '',
|
||||
@@ -16285,6 +16286,7 @@ speechSynthesis.getVoices();
|
||||
isPC: false,
|
||||
isQuest: false,
|
||||
isIos: false,
|
||||
avatarScaling: false,
|
||||
inCache: false,
|
||||
cacheSize: '',
|
||||
fileCreatedAt: '',
|
||||
@@ -16298,6 +16300,7 @@ speechSynthesis.getVoices();
|
||||
isPC: false,
|
||||
isQuest: false,
|
||||
isIos: false,
|
||||
avatarScaling: false,
|
||||
inCache: false,
|
||||
cacheSize: '',
|
||||
fileCreatedAt: '',
|
||||
@@ -16315,6 +16318,8 @@ speechSynthesis.getVoices();
|
||||
this.currentInstanceWorld.isPC = isPC;
|
||||
this.currentInstanceWorld.isQuest = isQuest;
|
||||
this.currentInstanceWorld.isIos = isIos;
|
||||
this.currentInstanceWorld.avatarScaling =
|
||||
args.ref?.tags.includes('feature_avatar_scaling');
|
||||
this.checkVRChatCache(args.ref).then((cacheInfo) => {
|
||||
if (cacheInfo[0] > 0) {
|
||||
this.currentInstanceWorld.inCache = true;
|
||||
@@ -16936,6 +16941,7 @@ speechSynthesis.getVoices();
|
||||
$location: {},
|
||||
ref: {},
|
||||
isFavorite: false,
|
||||
avatarScaling: false,
|
||||
rooms: [],
|
||||
treeData: [],
|
||||
fileCreatedAt: '',
|
||||
@@ -17067,6 +17073,8 @@ speechSynthesis.getVoices();
|
||||
D.lastVisit = '';
|
||||
D.visitCount = '';
|
||||
D.timeSpent = 0;
|
||||
D.isFavorite = false;
|
||||
D.avatarScaling = false;
|
||||
D.isPC = false;
|
||||
D.isQuest = false;
|
||||
D.isIos = false;
|
||||
@@ -17115,6 +17123,9 @@ speechSynthesis.getVoices();
|
||||
var { isPC, isQuest, isIos } = this.getAvailablePlatforms(
|
||||
args.ref.unityPackages
|
||||
);
|
||||
D.avatarScaling = args.ref?.tags.includes(
|
||||
'feature_avatar_scaling'
|
||||
);
|
||||
D.isPC = isPC;
|
||||
D.isQuest = isQuest;
|
||||
D.isIos = isIos;
|
||||
@@ -18630,7 +18641,8 @@ speechSynthesis.getVoices();
|
||||
$app.data.setWorldTagsDialog = {
|
||||
visible: false,
|
||||
tags: [],
|
||||
debugAllowed: false
|
||||
debugAllowed: false,
|
||||
avatarScaling: false
|
||||
};
|
||||
|
||||
$app.methods.showSetWorldTagsDialog = function () {
|
||||
@@ -18646,6 +18658,9 @@ speechSynthesis.getVoices();
|
||||
if (tag === 'debug_allowed') {
|
||||
D.debugAllowed = true;
|
||||
}
|
||||
if (tag === 'feature_avatar_scaling') {
|
||||
D.avatarScaling = true;
|
||||
}
|
||||
});
|
||||
D.tags = tags.toString();
|
||||
};
|
||||
@@ -18662,8 +18677,11 @@ speechSynthesis.getVoices();
|
||||
if (D.debugAllowed) {
|
||||
tags.unshift('debug_allowed');
|
||||
}
|
||||
if (D.avatarScaling) {
|
||||
tags.unshift('feature_avatar_scaling');
|
||||
}
|
||||
API.saveWorld({
|
||||
id: $app.worldDialog.id,
|
||||
id: this.worldDialog.id,
|
||||
tags
|
||||
}).then((args) => {
|
||||
this.$message({
|
||||
@@ -18671,6 +18689,12 @@ speechSynthesis.getVoices();
|
||||
type: 'success'
|
||||
});
|
||||
D.visible = false;
|
||||
if (
|
||||
this.worldDialog.visible &&
|
||||
this.worldDialog.id === args.json.id
|
||||
) {
|
||||
this.showWorldDialog(args.json.id);
|
||||
}
|
||||
return args;
|
||||
});
|
||||
};
|
||||
|
||||
@@ -571,6 +571,7 @@ html
|
||||
el-tag.x-tag-platform-pc(v-if="worldDialog.isPC" type="info" effect="plain" size="mini" style="margin-right:5px;margin-top:5px") PC
|
||||
el-tag.x-tag-platform-quest(v-if="worldDialog.isQuest" type="info" effect="plain" size="mini" style="margin-right:5px;margin-top:5px") Quest
|
||||
el-tag.x-tag-platform-ios(v-if="worldDialog.isIos" type="info" effect="plain" size="mini" style="margin-right:5px;margin-top:5px") iOS
|
||||
el-tag(v-if="worldDialog.avatarScaling" type="info" effect="plain" size="mini" style="margin-right:5px;margin-top:5px") {{ $t('dialog.world.tags.avatar_scaling') }}
|
||||
el-tag(type="info" effect="plain" size="mini" v-text="worldDialog.fileSize" style="margin-right:5px;margin-top:5px")
|
||||
el-tag(v-if="worldDialog.inCache" type="info" effect="plain" size="mini" style="margin-right:5px;margin-top:5px")
|
||||
span(v-text="worldDialog.cacheSize")
|
||||
@@ -1370,6 +1371,7 @@ html
|
||||
|
||||
//- dialog: Set World Tags
|
||||
el-dialog.x-dialog(:before-close="beforeDialogClose" @mousedown.native="dialogMouseDown" @mouseup.native="dialogMouseUp" ref="setWorldTagsDialog" :visible.sync="setWorldTagsDialog.visible" :title="$t('dialog.set_world_tags.header')" width="400px")
|
||||
el-checkbox(v-model="setWorldTagsDialog.avatarScaling") {{ $t('dialog.set_world_tags.avatar_scaling') }}
|
||||
el-checkbox(v-model="setWorldTagsDialog.debugAllowed") {{ $t('dialog.set_world_tags.enable_debugging') }}
|
||||
div(style='font-size:12px;margin-top:10px')
|
||||
| {{ $t('dialog.set_world_tags.seprator') }} #[br]
|
||||
|
||||
@@ -608,6 +608,7 @@
|
||||
"tags": {
|
||||
"public": "Public",
|
||||
"private": "Private",
|
||||
"avatar_scaling": "Avatar Scaling",
|
||||
"labs": "Labs",
|
||||
"cache": "Cache"
|
||||
},
|
||||
@@ -899,6 +900,7 @@
|
||||
},
|
||||
"set_world_tags": {
|
||||
"header": "Set World Tags",
|
||||
"avatar_scaling": "Avatar Scaling",
|
||||
"enable_debugging": "Enable world debugging for others",
|
||||
"seprator": "Enter tags comma separated",
|
||||
"cancel": "Cancel",
|
||||
|
||||
@@ -18,6 +18,7 @@ mixin playerListTab()
|
||||
el-tag.x-tag-platform-pc(v-if="currentInstanceWorld.isPC" type="info" effect="plain" size="mini" style="margin-right:5px") PC
|
||||
el-tag.x-tag-platform-quest(v-if="currentInstanceWorld.isQuest" type="info" effect="plain" size="mini" style="margin-right:5px") Quest
|
||||
el-tag.x-tag-platform-ios(v-if="currentInstanceWorld.isIOS" type="info" effect="plain" size="mini" style="margin-right:5px") iOS
|
||||
el-tag(v-if="currentInstanceWorld.avatarScaling" type="info" effect="plain" size="mini" style="margin-right:5px;margin-top:5px") {{ $t('dialog.world.tags.avatar_scaling') }}
|
||||
el-tag(type="info" effect="plain" size="mini" v-text="currentInstanceWorld.fileSize" style="margin-right:5px")
|
||||
el-tag(v-if="currentInstanceWorld.inCache" type="info" effect="plain" size="mini" style="margin-right:5px")
|
||||
span(v-text="currentInstanceWorld.cacheSize")
|
||||
|
||||
Reference in New Issue
Block a user