first Prototype

This commit is contained in:
Exobyt 2025-08-28 01:55:38 +02:00
parent e11825c698
commit 35ce267482
481 changed files with 17315 additions and 1 deletions

14
scenes/camera/UI/card.gd Normal file
View 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)