Removed BackgroundImageLoader component
This commit is contained in:
parent
04203cb9c1
commit
4070bcf048
@ -1,7 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<Debug />
|
<Debug />
|
||||||
<Notifications />
|
<Notifications />
|
||||||
<BackgroundImageLoader />
|
|
||||||
<GmPanel v-if="gameStore.character?.role === 'gm'" />
|
<GmPanel v-if="gameStore.character?.role === 'gm'" />
|
||||||
<component :is="currentScreen" />
|
<component :is="currentScreen" />
|
||||||
</template>
|
</template>
|
||||||
|
@ -1,23 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div style="display: none">
|
|
||||||
<img v-for="(url, index) in imageUrls" :key="index" :src="url" alt="" @load="handleImageLoad(index)" @error="handleImageError(index)" />
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script setup lang="ts">
|
|
||||||
import { ref } from 'vue'
|
|
||||||
|
|
||||||
// Internal array of images to preload
|
|
||||||
const imageUrls = ref<string[]>(['/assets/ui-elements/button-ui-box-textured.svg', '/assets/ui-elements/button-ui-frame-empty.svg', '/assets/ui-elements/button-ui-box-textured-small.svg', '/assets/ui-elements/profile-ui-box-inner.svg', '/assets/ui-elements/profile-ui-box-outer.svg'])
|
|
||||||
|
|
||||||
const loadedImages = ref<Set<number>>(new Set())
|
|
||||||
|
|
||||||
const handleImageLoad = (index: number) => {
|
|
||||||
loadedImages.value.add(index)
|
|
||||||
console.log(`Image ${index} loaded:`, imageUrls.value[index])
|
|
||||||
}
|
|
||||||
|
|
||||||
const handleImageError = (index: number) => {
|
|
||||||
console.log(`Image ${index} failed to load:`, imageUrls.value[index])
|
|
||||||
}
|
|
||||||
</script>
|
|
Loading…
x
Reference in New Issue
Block a user