1
0
forked from noxious/client

Tile asset management 90% done

This commit is contained in:
2024-07-02 21:53:50 +02:00
parent fc72c83f8d
commit 4c6978e0c0
13 changed files with 176 additions and 63 deletions

View File

@ -1,8 +1,9 @@
<template>
<div class="image-container">
<img :src="`${config.server_endpoint}/assets/tiles/${assetManagerStore.selectedTile}`" alt="Tile" />
<img :src="`${config.server_endpoint}/assets/tiles/${assetManagerStore.selectedTile}.png`" alt="Tile" />
</div>
<div class="modal-form asset-manager">
<ChipsInput />
<form class="form-fields">
<div class="form-field name">
<label for="name">Name</label>
@ -21,6 +22,7 @@
import config from '@/config'
import { useAssetManagerStore } from '@/stores/assetManager'
import { useSocketStore } from '@/stores/socket'
import ChipsInput from '@/components/forms/ChipsInput.vue'
const socket = useSocketStore()
const assetManagerStore = useAssetManagerStore()

View File

@ -8,7 +8,7 @@
</div>
<a class="asset" :class="{ active: assetManagerStore.selectedTile === tile }" v-for="(tile, index) in assetManagerStore.tileList" :key="index" @click="assetManagerStore.setSelectedTile(tile)">
<div class="asset-details">
<img :src="`${config.server_endpoint}/assets/tiles/${tile}`" alt="Tile" />
<img :src="`${config.server_endpoint}/assets/tiles/${tile}.png`" alt="Tile" />
<span class="asset-name">{{ tile }}</span>
</div>
</a>