TODO: Fix UI Button reaching 0 not greying out, fix state behaviour for selected tiles
This commit is contained in:
parent
b9df0b4361
commit
5b79dc9822
9 changed files with 325 additions and 95 deletions
|
|
@ -46,7 +46,7 @@ func _on_placement_cancelled() -> void:
|
|||
enable()
|
||||
return
|
||||
|
||||
func _on_insect_placed(resource: TileResource, is_black: bool, pos: Vector2i) -> void:
|
||||
func _on_insect_placed(resource: TileResource, is_black: bool, pos: HexGrid.CubeCoordinates) -> void:
|
||||
if selected:
|
||||
selected = false
|
||||
|
||||
|
|
@ -71,7 +71,7 @@ func _ready():
|
|||
if is_black:
|
||||
hex.texture = HEX_BLACK
|
||||
|
||||
func _on_insect_selected(_resource, _is_black) -> void:
|
||||
func _on_insect_selected(_resource: TileResource, _is_black: bool) -> void:
|
||||
disabled = true
|
||||
|
||||
if _resource == insect_resource and _is_black == is_black:
|
||||
|
|
@ -118,8 +118,6 @@ func _on_pressed():
|
|||
|
||||
if selected:
|
||||
return
|
||||
|
||||
print("??")
|
||||
|
||||
if tile_count <= 0:
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue