From 7c69b35f00f6c198e58f01b3b9a7a9d10e81586e Mon Sep 17 00:00:00 2001 From: Russell Matney Date: Sun, 31 Mar 2024 21:14:10 -0400 Subject: [PATCH] feat: show current tileset in editor --- src/dino/modes/vania/VaniaEditor.gd | 2 +- src/dino/modes/vania/maps/VaniaRoom.gd | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dino/modes/vania/VaniaEditor.gd b/src/dino/modes/vania/VaniaEditor.gd index 5300e8245..c32d865d4 100644 --- a/src/dino/modes/vania/VaniaEditor.gd +++ b/src/dino/modes/vania/VaniaEditor.gd @@ -80,5 +80,5 @@ func update_room_def(): current_room_label.text = "room: %s" % current_room_def.room_path.get_file() room_entities_label.text = "ents: %s" % Log.to_printable([current_room_def.entities]) neighbors_label.text = "ngbrs: %s" % Log.to_printable([MetSys.get_current_room_instance().get_neighbor_rooms(false).map(func(n): return n.get_file())]) - # room_tiles_label.text = Log.to_printable([current_room_def.entities]) + room_tiles_label.text = "tileset: %s" % current_room_def.label_to_tilemap.get("Tile").scene.resource_path.get_file() room_count_label.text = "rooms: %s (%s)" % [len(game.room_defs), game.desired_room_count] diff --git a/src/dino/modes/vania/maps/VaniaRoom.gd b/src/dino/modes/vania/maps/VaniaRoom.gd index 69eb85e26..1aa87b922 100644 --- a/src/dino/modes/vania/maps/VaniaRoom.gd +++ b/src/dino/modes/vania/maps/VaniaRoom.gd @@ -50,6 +50,7 @@ func _ready(): add_tile_chunks() add_entities() +# TODO use neighbor tileset as background near the door func setup_tileset(): var rd_tilemap = room_def.label_to_tilemap.get("Tile") if rd_tilemap: