translation #52
This commit is contained in:
@@ -22,22 +22,22 @@
|
||||
class="scene-switcher" marker-start="url(#arrow)" ></OffsetLine>
|
||||
</teleport>
|
||||
<v-card v-if="selected" :title="modelValue.title" class="mx-2" variant="text">
|
||||
<v-select label="Game Object Type" v-model="modelValue.type" density="compact" hide-details
|
||||
<v-select :label="l.gameObjectType" v-model="modelValue.type" density="compact" hide-details
|
||||
:items="InteractiveObjectTypes.map(e=>({title: e.name, value: e.id}))"></v-select>
|
||||
<v-form class="pt-4">
|
||||
<v-text-field density="compact" :label="l.name" v-model="modelValue.title"></v-text-field>
|
||||
<!-- <v-text-field density="compact" :label="l.id" v-model="modelValue.id"></v-text-field> -->
|
||||
<v-number-input density="compact" label="Completion points" v-model="modelValue.points"></v-number-input>
|
||||
<v-number-input density="compact" :label="l.completionPoints" v-model="modelValue.points"></v-number-input>
|
||||
</v-form>
|
||||
<div v-if="selected && modelValue.type">
|
||||
<component :is="modelValue.type" v-model="mv"></component>
|
||||
</div>
|
||||
|
||||
<v-card title="Activation requirements" v-if="modelValue.type != 'CharacterObject'">
|
||||
<v-number-input density="compact" label="Level score should be above" v-model="modelValue.activationScore"></v-number-input>
|
||||
<v-select density="compact" label="Following elements should be completed" v-model="modelValue.activationTriggers"
|
||||
<v-card :title="l.activationConditions" v-if="modelValue.type != 'CharacterObject'">
|
||||
<v-number-input density="compact" :label="l.minActivationScore" v-model="modelValue.activationScore"></v-number-input>
|
||||
<v-select density="compact" :label="l.completionElements" v-model="modelValue.activationTriggers"
|
||||
:items="parent.data.items.filter(v=>!v.data.exclude && v.data!==modelValue).map(v=>({title: v.data.title, value: v.data.id}))" multiple ></v-select>
|
||||
<v-select label="Activation Type" :items="activationTypes" density="compact" v-model="modelValue.activationType"></v-select>
|
||||
<v-select :label="l.activatoinType" :items="activationTypes" density="compact" v-model="modelValue.activationType"></v-select>
|
||||
</v-card>
|
||||
</v-card>
|
||||
|
||||
@@ -82,7 +82,7 @@ export default {
|
||||
return {
|
||||
InteractiveObjectTypes,
|
||||
active: false,
|
||||
activationTypes: [{ title:'Unlock', value:'unlock'}, { title:'Appear', value:'appear'}]
|
||||
activationTypes: ['unlock', 'appear'],
|
||||
}
|
||||
},
|
||||
mounted(){
|
||||
@@ -90,6 +90,7 @@ export default {
|
||||
this.modelValue.points ??= 10;
|
||||
this.modelValue.activationScore ??= 0;
|
||||
this.modelValue.type ??= 'GenericObject';
|
||||
this.activationTypes = this.activationTypes.map(t=>({title: this.l.activationTypes[t], value: t}))
|
||||
if (components[this.modelValue.type].__transform){
|
||||
components[this.modelValue.type].__transform(this.modelValue)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user