first Prototype
This commit is contained in:
parent
e11825c698
commit
35ce267482
481 changed files with 17315 additions and 1 deletions
14
scenes/camera/UI/card.gd
Normal file
14
scenes/camera/UI/card.gd
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
class_name Card extends CenterContainer
|
||||
|
||||
@onready var itemButton = $ItemButton
|
||||
@onready var ItemAmountLabel = $ItemButton/ItemAmountLabel
|
||||
|
||||
@export var itemType: GLOBALS.ITEMTYPES = GLOBALS.ITEMTYPES.STANDARDBULLET
|
||||
|
||||
signal selected(_itemType: GLOBALS.ITEMTYPES)
|
||||
|
||||
func _on_item_button_pressed() -> void:
|
||||
selected.emit(itemType)
|
||||
|
||||
func setAmount(amount: int) -> void:
|
||||
ItemAmountLabel.text = str(amount)
|
||||
Loading…
Add table
Add a link
Reference in a new issue