From 56f30093f6013f736dc5e73d107d60d846d2b913 Mon Sep 17 00:00:00 2001 From: Dennis Postma Date: Fri, 14 Feb 2025 03:04:42 +0100 Subject: [PATCH] Teleport fix WIP --- .../mapEditor/mapPartials/MapEventTiles.vue | 2 ++ .../mapEditor/mapPartials/PlacedMapObjects.vue | 2 +- .../mapEditor/partials/MapObjectList.vue | 7 +------ .../mapEditor/partials/TeleportModal.vue | 18 +++++++++--------- .../gameMaster/mapEditor/partials/TileList.vue | 7 +------ src/components/screens/MapEditor.vue | 1 + src/components/utilities/Debug.vue | 4 ++-- src/composables/useMapEditorComposable.ts | 2 +- src/services/mapService.ts | 2 +- 9 files changed, 19 insertions(+), 26 deletions(-) diff --git a/src/components/gameMaster/mapEditor/mapPartials/MapEventTiles.vue b/src/components/gameMaster/mapEditor/mapPartials/MapEventTiles.vue index 3ffbc95..726bc78 100644 --- a/src/components/gameMaster/mapEditor/mapPartials/MapEventTiles.vue +++ b/src/components/gameMaster/mapEditor/mapPartials/MapEventTiles.vue @@ -90,6 +90,8 @@ function pencil(pointer: Phaser.Input.Pointer, map: MapT) { // If teleport, check if there is a selected map if (mapEditor.drawMode.value === 'teleport' && !mapEditor.teleportSettings.value.toMapId) return + console.log(mapEditor.teleportSettings.value.toMapId) + const newEventTile = { id: uuidv4() as UUID, mapId: map.id, diff --git a/src/components/gameMaster/mapEditor/mapPartials/PlacedMapObjects.vue b/src/components/gameMaster/mapEditor/mapPartials/PlacedMapObjects.vue index b65c0f6..70919d5 100644 --- a/src/components/gameMaster/mapEditor/mapPartials/PlacedMapObjects.vue +++ b/src/components/gameMaster/mapEditor/mapPartials/PlacedMapObjects.vue @@ -18,7 +18,7 @@ import SelectedPlacedMapObjectComponent from '@/components/gameMaster/mapEditor/ import { useMapEditorComposable } from '@/composables/useMapEditorComposable' import { getTile } from '@/services/mapService' import { useScene } from 'phavuer' -import {computed, onMounted, onUnmounted, ref, watch} from 'vue' +import { computed, onMounted, onUnmounted, ref, watch } from 'vue' import Tilemap = Phaser.Tilemaps.Tilemap import TilemapLayer = Phaser.Tilemaps.TilemapLayer diff --git a/src/components/gameMaster/mapEditor/partials/MapObjectList.vue b/src/components/gameMaster/mapEditor/partials/MapObjectList.vue index 5f7db97..87100ec 100644 --- a/src/components/gameMaster/mapEditor/partials/MapObjectList.vue +++ b/src/components/gameMaster/mapEditor/partials/MapObjectList.vue @@ -9,12 +9,7 @@ - Close + Close