This commit is contained in:
Torsten 2025-11-17 06:27:36 +01:00
parent fca44e1036
commit 4e949f53dc
3 changed files with 2 additions and 5 deletions

View file

@ -22,7 +22,7 @@ Global="*res://_autoload/global.gd"
[display]
window/size/viewport_width=1920
window/size/viewport_height=1080
window/size/viewport_height=1280
window/stretch/mode="canvas_items"
window/stretch/aspect="expand"

View file

@ -4,4 +4,4 @@ func _unhandled_input(event):
if event is InputEventMouseButton:
print("A click reached the ui layer")
else:
print("Non UI-Layer click")
print("Non UI-Layer event:", event)

View file

@ -2,14 +2,11 @@ extends TileMapLayer
signal hex_clicked(cell_pos:Vector2, atlas_coords:Vector2)
var interaction_enabled:bool = true
func _ready():
print("TileMapLayer is alive")
func _input(event: InputEvent):
if not interaction_enabled: return
if %MapMenuContainer.visible==true: return
if event is InputEventMouseButton: