list items

This commit is contained in:
2025-03-16 22:16:47 +02:00
parent 2a44578430
commit 733d212f17
8 changed files with 227 additions and 67 deletions
+7 -5
View File
@@ -1,16 +1,19 @@
<template>
<teleport to=".scene-designer" v-if="active">
<g @mousedown="$emit('target', {target:vd, attrs:['x1', 'y1'], delta: true})" :class="{gameObject: true, selected}">
<g @mousedown="$emit('target', {target:vd, attrs:['x1', 'y1'], delta: true})" :class="{gameObject: true, selected}" v-show="visible && parent.visible">
<line :x1="vd.x1" :y1="vd.y1" :x2="parent.vd.x1" :y2="parent.vd.y1"></line>
<svg-icon :src="`/asset/thumb/${modelValue.id||0}.webp`" :x="vd.x1" :y="vd.y1" :size="37"></svg-icon>
</g>
</teleport>
<v-card v-if="selected">
<v-card v-if="selected" class="py-4">
<asset-selector @select="modelValue.id = $event" type="GameObject">
<template v-slot:activator="props">
<v-btn v-bind="props" icon="mdi-panorama-outline"></v-btn>
<v-btn v-bind="props" prepend-icon="mdi-panorama-outline" color="success" block>Choose game object</v-btn>
</template>
</asset-selector>
<v-form class="py-4">
<v-text-field density="compact" :label="$l.name" v-model="modelValue.title"></v-text-field>
</v-form>
</v-card>
</template>
@@ -39,8 +42,7 @@ export default {
parent: Object
},
steps: [['x1', 'y1']],
icon: 'mdi-vector-line',
name: 'svg-game-object',
name: 'game-object',
modifiers: ['x1', 'y1'],
methods:{
intersect(v){