added Graphics and sound Effects and more overhauls
This commit is contained in:
parent
c887a2168c
commit
b9d4288900
214 changed files with 3378 additions and 198 deletions
17
scenes/upgradeChooser/choice/choice.gd
Normal file
17
scenes/upgradeChooser/choice/choice.gd
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
class_name Choice extends MarginContainer
|
||||
|
||||
@onready var nameLabel = $VBoxContainer/nameLabel
|
||||
@onready var description = $VBoxContainer/description
|
||||
|
||||
var option: int
|
||||
|
||||
signal selected(_option: int)
|
||||
|
||||
func setValues(_text: String, _description: String, _option: int) -> void:
|
||||
nameLabel.text = _text
|
||||
description.text = _description
|
||||
option = _option
|
||||
|
||||
func _on_button_pressed() -> void:
|
||||
get_tree().paused = false
|
||||
selected.emit(option)
|
||||
Loading…
Add table
Add a link
Reference in a new issue