Merge branch 'main' of https://gitea.xanax.lol/new-quest/nq-client
This commit is contained in:
@ -24,6 +24,13 @@
|
||||
<label class="mb-1.5 font-titles" for="origin-x">Tags</label>
|
||||
<ChipsInput v-model="objectTags" @update:modelValue="objectTags = $event" />
|
||||
</div>
|
||||
<div class="w-full flex flex-col mb-5">
|
||||
<label class="mb-1.5 font-titles" for="origin-x">Is animated</label>
|
||||
<select v-model="objectIsAnimated" class="input-cyan">
|
||||
<option value="0">No</option>
|
||||
<option value="1">Yes</option>
|
||||
</select>
|
||||
</div>
|
||||
<button class="btn-cyan px-4 py-1.5 min-w-24" type="submit">Save</button>
|
||||
</form>
|
||||
</div>
|
||||
@ -49,6 +56,7 @@ const objectName = ref('')
|
||||
const objectTags = ref([] as string[])
|
||||
const objectOriginX = ref(0)
|
||||
const objectOriginY = ref(0)
|
||||
const objectIsAnimated = ref(0)
|
||||
|
||||
if (!selectedObject.value) {
|
||||
console.error('No object selected')
|
||||
@ -59,6 +67,7 @@ if (selectedObject.value) {
|
||||
objectTags.value = selectedObject.value.tags
|
||||
objectOriginX.value = selectedObject.value.origin_x
|
||||
objectOriginY.value = selectedObject.value.origin_y
|
||||
objectIsAnimated.value = selectedObject.value.is_animated
|
||||
}
|
||||
|
||||
function removeObject() {
|
||||
|
Reference in New Issue
Block a user