add base system

This commit is contained in:
2026-04-11 18:40:28 +02:00
parent ecaa3704d7
commit adaa9eda98
35 changed files with 689 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
extends Control
class_name CollectibleUI
@onready var label: Label = $Panel/MarginContainer/VBoxContainer/Label
@onready var texture_rect: TextureRect = $Panel/MarginContainer/VBoxContainer/TextureRect
var collectible_resource: CollectibleResource
func setup(collectible: CollectibleResource) -> void:
collectible_resource = collectible
$Panel/MarginContainer/VBoxContainer/Label.text = collectible_resource.title
if collectible.image:
$Panel/MarginContainer/VBoxContainer/TextureRect.texture = collectible_resource.image
func unlock() -> void:
$Panel/MarginContainer/VBoxContainer/TextureRect.set_modulate(Color(1,1,1,1))