This commit is contained in:
Eric Vande Voort
2025-01-07 16:10:03 -06:00
commit 7eb0dea424
147 changed files with 9096 additions and 0 deletions

12
scripts/cargo_item.gd Normal file
View File

@@ -0,0 +1,12 @@
extends PanelContainer
class_name CargoItem
@onready var item_texture: TextureRect = %ItemTexture
@onready var item_label: Label = %ItemLabel
func init(type: String, count: int):
item_texture.texture = DataHandler.type_to_texture(type)
item_label.text = "x%s" % count
func update_count(count: int):
item_label.text = "x%s" % count