Resort components

This commit is contained in:
Dennis Postma 2024-09-18 21:37:14 +02:00
parent ddb0e8bf3a
commit 087f007306

View File

@ -3,13 +3,14 @@
<ZoneList v-if="zoneEditorStore.isZoneListModalShown" />
<template v-if="zoneEditorStore.zone">
<Controls :layer="tiles as TilemapLayer" />
<Tiles />
<Objects />
<ZoneSettings />
<TeleportModal v-if="shouldShowTeleportModal" />
<Controls :layer="tiles as TilemapLayer" />
<Container :depth="2">
<Image v-for="object in zoneObjects" :depth="calculateIsometricDepth(object.positionX, object.positionY, 0)" :key="object.id" v-bind="getObjectImageProps(object)" @pointerup="() => setSelectedZoneObject(object)" />
</Container>
@ -46,6 +47,12 @@ import TeleportModal from '@/components/gameMaster/zoneEditor/partials/TeleportM
import Tilemap = Phaser.Tilemaps.Tilemap
import TilemapLayer = Phaser.Tilemaps.TilemapLayer
/**
* @TODO:
* Clean all the code in this file
*/
const scene = useScene()
const gameStore = useGameStore()
const zoneEditorStore = useZoneEditorStore()