add game menu

This commit was merged in pull request #19.
This commit is contained in:
2026-05-15 20:33:21 +00:00
parent 22877bffbe
commit 0e56a84a95
173 changed files with 3529 additions and 317 deletions

View File

@@ -0,0 +1,19 @@
extends Control
class_name CollectibleUI
var collectible_resource: CollectibleResource
@onready var texture_rect: TextureRect = $%CollectibleTexture
func setup(collectible: CollectibleResource) -> void:
collectible_resource = collectible
if collectible.image:
if !texture_rect:
texture_rect = $%CollectibleTexture
texture_rect.texture = collectible_resource.image
func unlock() -> void:
if !texture_rect:
texture_rect = $%CollectibleTexture
texture_rect.set_modulate(Color(1,1,1,1))