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

View File

@@ -71,6 +71,10 @@
<el-checkbox v-model="setWorldTagsDialog.props">
{{ t('dialog.new_instance.content_items') }}
</el-checkbox>
<br />
<el-checkbox v-model="setWorldTagsDialog.thirdPerson">
{{ t('dialog.new_instance.content_third_person') }}
</el-checkbox>
<template #footer>
<div style="display: flex">
<el-button @click="isVisible = false">
@@ -133,7 +137,8 @@
pedestals: true,
prints: true,
drones: true,
props: true
props: true,
thirdPerson: true
});
const isVisible = computed({
@@ -217,6 +222,8 @@
case 'feature_props_disabled':
D.props = false;
break;
case 'feature_third_person_view_disabled':
D.thirdPerson = false;
}
});
D.authorTags = authorTags.toString();
@@ -290,6 +297,9 @@
if (!D.props) {
tags.unshift('feature_props_disabled');
}
if (!D.thirdPerson) {
tags.unshift('feature_third_person_view_disabled');
}
worldRequest
.saveWorld({
id: props.worldId,

View File

@@ -737,7 +737,7 @@
<template v-if="isDialogVisible">
<WorldAllowedDomainsDialog :world-allowed-domains-dialog="worldAllowedDomainsDialog" />
<SetWorldTagsDialog
:is-set-world-tags-dialog-visible="isSetWorldTagsDialogVisible"
v-model:is-set-world-tags-dialog-visible="isSetWorldTagsDialogVisible"
:old-tags="worldDialog.ref?.tags"
:world-id="worldDialog.id"
:is-world-dialog-visible="worldDialog.visible" />

View File

@@ -1339,6 +1339,7 @@
"content_prints": "Prints",
"content_drones": "Drones",
"content_items": "Items",
"content_third_person": "Third Person",
"world_id": "World ID",
"instance_id": "Instance ID",
"instance_id_placeholder": "Random",