Add thirdPerson world tag and fix world tags dialog not closing

This commit is contained in:
Natsumi
2025-11-22 18:09:38 +11:00
parent 22733095d6
commit a51e44492c
3 changed files with 13 additions and 2 deletions
@@ -71,6 +71,10 @@
<el-checkbox v-model="setWorldTagsDialog.props"> <el-checkbox v-model="setWorldTagsDialog.props">
{{ t('dialog.new_instance.content_items') }} {{ t('dialog.new_instance.content_items') }}
</el-checkbox> </el-checkbox>
<br />
<el-checkbox v-model="setWorldTagsDialog.thirdPerson">
{{ t('dialog.new_instance.content_third_person') }}
</el-checkbox>
<template #footer> <template #footer>
<div style="display: flex"> <div style="display: flex">
<el-button @click="isVisible = false"> <el-button @click="isVisible = false">
@@ -133,7 +137,8 @@
pedestals: true, pedestals: true,
prints: true, prints: true,
drones: true, drones: true,
props: true props: true,
thirdPerson: true
}); });
const isVisible = computed({ const isVisible = computed({
@@ -217,6 +222,8 @@
case 'feature_props_disabled': case 'feature_props_disabled':
D.props = false; D.props = false;
break; break;
case 'feature_third_person_view_disabled':
D.thirdPerson = false;
} }
}); });
D.authorTags = authorTags.toString(); D.authorTags = authorTags.toString();
@@ -290,6 +297,9 @@
if (!D.props) { if (!D.props) {
tags.unshift('feature_props_disabled'); tags.unshift('feature_props_disabled');
} }
if (!D.thirdPerson) {
tags.unshift('feature_third_person_view_disabled');
}
worldRequest worldRequest
.saveWorld({ .saveWorld({
id: props.worldId, id: props.worldId,
@@ -737,7 +737,7 @@
<template v-if="isDialogVisible"> <template v-if="isDialogVisible">
<WorldAllowedDomainsDialog :world-allowed-domains-dialog="worldAllowedDomainsDialog" /> <WorldAllowedDomainsDialog :world-allowed-domains-dialog="worldAllowedDomainsDialog" />
<SetWorldTagsDialog <SetWorldTagsDialog
:is-set-world-tags-dialog-visible="isSetWorldTagsDialogVisible" v-model:is-set-world-tags-dialog-visible="isSetWorldTagsDialogVisible"
:old-tags="worldDialog.ref?.tags" :old-tags="worldDialog.ref?.tags"
:world-id="worldDialog.id" :world-id="worldDialog.id"
:is-world-dialog-visible="worldDialog.visible" /> :is-world-dialog-visible="worldDialog.visible" />
+1
View File
@@ -1339,6 +1339,7 @@
"content_prints": "Prints", "content_prints": "Prints",
"content_drones": "Drones", "content_drones": "Drones",
"content_items": "Items", "content_items": "Items",
"content_third_person": "Third Person",
"world_id": "World ID", "world_id": "World ID",
"instance_id": "Instance ID", "instance_id": "Instance ID",
"instance_id_placeholder": "Random", "instance_id_placeholder": "Random",