...
This commit is contained in:
parent
fca44e1036
commit
4e949f53dc
3 changed files with 2 additions and 5 deletions
|
|
@ -22,7 +22,7 @@ Global="*res://_autoload/global.gd"
|
||||||
[display]
|
[display]
|
||||||
|
|
||||||
window/size/viewport_width=1920
|
window/size/viewport_width=1920
|
||||||
window/size/viewport_height=1080
|
window/size/viewport_height=1280
|
||||||
window/stretch/mode="canvas_items"
|
window/stretch/mode="canvas_items"
|
||||||
window/stretch/aspect="expand"
|
window/stretch/aspect="expand"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,4 +4,4 @@ func _unhandled_input(event):
|
||||||
if event is InputEventMouseButton:
|
if event is InputEventMouseButton:
|
||||||
print("A click reached the ui layer")
|
print("A click reached the ui layer")
|
||||||
else:
|
else:
|
||||||
print("Non UI-Layer click")
|
print("Non UI-Layer event:", event)
|
||||||
|
|
|
||||||
|
|
@ -2,14 +2,11 @@ extends TileMapLayer
|
||||||
|
|
||||||
signal hex_clicked(cell_pos:Vector2, atlas_coords:Vector2)
|
signal hex_clicked(cell_pos:Vector2, atlas_coords:Vector2)
|
||||||
|
|
||||||
var interaction_enabled:bool = true
|
|
||||||
|
|
||||||
func _ready():
|
func _ready():
|
||||||
print("TileMapLayer is alive")
|
print("TileMapLayer is alive")
|
||||||
|
|
||||||
|
|
||||||
func _input(event: InputEvent):
|
func _input(event: InputEvent):
|
||||||
if not interaction_enabled: return
|
|
||||||
if %MapMenuContainer.visible==true: return
|
if %MapMenuContainer.visible==true: return
|
||||||
|
|
||||||
if event is InputEventMouseButton:
|
if event is InputEventMouseButton:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue