diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2023-03-14 21:45:00 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2023-03-14 21:45:00 +0100 |
commit | c2a17228c19c4f959367b139e39c5e24dd7edd36 (patch) | |
tree | 2a898121b636f621bca67e332d439fc7c2e1c0fb /addons/hexgrid/Tile.gd | |
parent | d7ae050e7dc27fa052a9f4dbf065fdb86a966967 (diff) | |
download | godot-hexgrid-c2a17228c19c4f959367b139e39c5e24dd7edd36.zip godot-hexgrid-c2a17228c19c4f959367b139e39c5e24dd7edd36.tar.gz |
go godot4
Diffstat (limited to 'addons/hexgrid/Tile.gd')
-rw-r--r-- | addons/hexgrid/Tile.gd | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/hexgrid/Tile.gd b/addons/hexgrid/Tile.gd index b9463eb..ac94584 100644 --- a/addons/hexgrid/Tile.gd +++ b/addons/hexgrid/Tile.gd @@ -1,7 +1,7 @@ -#warning-ignore-all:unused_argument +@icon('res://addons/hexgrid/Tile.png') extends Node2D -class_name Tile, "res://addons/hexgrid/Tile.png" +class_name Tile var coords : Vector2 var blocked : bool @@ -18,7 +18,7 @@ func configure(p : Vector2, c: Vector2, o :Array) -> void: coords = c on_map = true for t in o: - var s :Sprite = Sprite.new() + var s :Sprite2D = Sprite2D.new() s.texture = load(t) s.visible = false add_child(s) |