TinyAdventure/ui/game_profile_item.gd

15 lines
344 B
GDScript
Raw Normal View History

class_name GameProfileItem
2024-11-16 21:53:14 +01:00
extends MarginContainer
@onready var name_label: Label = %NameLabel
@onready var start_button: Button = %StartButton
2024-11-16 21:40:22 +01:00
@onready var delete_button: Button = %DeleteButton
var game_profile:GameProfileResource = null
func _ready() -> void:
if game_profile == null:
return
name_label.text = game_profile.game_name