Placement and platforms
This commit is contained in:
parent
a2164dca72
commit
d37c4ec858
31 changed files with 351 additions and 11 deletions
9
scripts/gui/construction_button.gd
Normal file
9
scripts/gui/construction_button.gd
Normal file
|
@ -0,0 +1,9 @@
|
|||
extends Button
|
||||
|
||||
@export var constructible : Constructible
|
||||
|
||||
func _ready() -> void:
|
||||
icon = constructible.preview
|
||||
|
||||
func _pressed() -> void:
|
||||
GuiEventBus.construction_selected.emit(constructible)
|
1
scripts/gui/construction_button.gd.uid
Normal file
1
scripts/gui/construction_button.gd.uid
Normal file
|
@ -0,0 +1 @@
|
|||
uid://db37xmo8ygwhg
|
6
scripts/gui/gui_event_bus.gd
Normal file
6
scripts/gui/gui_event_bus.gd
Normal file
|
@ -0,0 +1,6 @@
|
|||
extends Node
|
||||
|
||||
@warning_ignore_start("unused_signal")
|
||||
|
||||
signal construction_selected(constructible : Constructible)
|
||||
signal construction_placed(constructible : Constructible)
|
1
scripts/gui/gui_event_bus.gd.uid
Normal file
1
scripts/gui/gui_event_bus.gd.uid
Normal file
|
@ -0,0 +1 @@
|
|||
uid://x5eghpenp777
|
Loading…
Add table
Add a link
Reference in a new issue