diff --git a/hexmapper/scenes/MainMap/_MainMap.tscn b/hexmapper/scenes/MainMap/_MainMap.tscn index f7aabac..79c2f0e 100644 --- a/hexmapper/scenes/MainMap/_MainMap.tscn +++ b/hexmapper/scenes/MainMap/_MainMap.tscn @@ -245,8 +245,8 @@ anchor_right = 1.0 anchor_bottom = 1.0 offset_left = 218.0 offset_top = -40.0 -offset_right = 350.0 -offset_bottom = 90.0 +offset_right = 270.0 +offset_bottom = 40.0 grow_horizontal = 2 grow_vertical = 2 diff --git a/hexmapper/scenes/MainMap/map/tile_set_helper.gd b/hexmapper/scenes/MainMap/map/tile_set_helper.gd index cb1ed86..a365c9c 100644 --- a/hexmapper/scenes/MainMap/map/tile_set_helper.gd +++ b/hexmapper/scenes/MainMap/map/tile_set_helper.gd @@ -62,10 +62,11 @@ static func _load_texture_from_path(path: String) -> Texture2D: if path.begins_with("res://"): return load(path) as Texture2D - # For filesystem paths, load the image using static method - var image: Image = Image.load_from_file(path) - if image == null: - push_error("TileSetHelper: Failed to load image from file: %s" % path) + # For filesystem paths, load the image and create a texture + var image: Image = Image.new() + var error: Error = image.load_from_file(path) + if error != OK: + push_error("TileSetHelper: Failed to load image from file: %s (Error: %d)" % [path, error]) return null var texture: ImageTexture = ImageTexture.create_from_image(image) diff --git a/hexmapper/scenes/MainMap/map/tile_set_helper.gd.uid b/hexmapper/scenes/MainMap/map/tile_set_helper.gd.uid deleted file mode 100644 index a5728b3..0000000 --- a/hexmapper/scenes/MainMap/map/tile_set_helper.gd.uid +++ /dev/null @@ -1 +0,0 @@ -uid://dy3opdq7yokuc