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