chara snippet
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 12s
Create tag and build when new code gets to main / Export (push) Successful in 1m30s

This commit is contained in:
2026-02-01 17:43:47 +01:00
parent a9f2e3c035
commit 15f95e5ed0
2 changed files with 11 additions and 2 deletions

View File

@@ -14,11 +14,13 @@ var pref_score_name: Dictionary[CharacterResource.Preference, String] = {
CharacterResource.Preference.HATE: "Hates ", CharacterResource.Preference.HATE: "Hates ",
} }
@onready var chara: Sprite2D = $"../GuestList/Chara"
@onready var label: Label = $Label @onready var label: Label = $Label
# Called when the node enters the scene tree for the first time. # Called when the node enters the scene tree for the first time.
func _ready() -> void: func _ready() -> void:
pass # Replace with function body. pass
# Called every frame. 'delta' is the elapsed time since the previous frame. # Called every frame. 'delta' is the elapsed time since the previous frame.
@@ -50,6 +52,9 @@ func cycle_through_items() -> void:
if item is MaskResource: if item is MaskResource:
label.text = "\n\n\n\n" + item.name + "\n\n" + item.description label.text = "\n\n\n\n" + item.name + "\n\n" + item.description
elif item is CharacterResource: elif item is CharacterResource:
chara.visible = true
chara.texture = item.chara_sprite
label.text = item.name + "\n\nTraits\n" label.text = item.name + "\n\nTraits\n"
for guest_trait: Trait in item.traits: for guest_trait: Trait in item.traits:
label.text += guest_trait.name + "\n" label.text += guest_trait.name + "\n"

View File

@@ -543,6 +543,10 @@ position = Vector2(-224.08743, 155.85515)
scale = Vector2(0.6, 0.6) scale = Vector2(0.6, 0.6)
texture = ExtResource("36_62f45") texture = ExtResource("36_62f45")
[node name="Chara" type="Sprite2D" parent="GuestList" unique_id=275662105]
position = Vector2(179.2679, -334.8194)
scale = Vector2(0.08, 0.08)
[node name="Arrow004" type="Sprite2D" parent="GuestList" unique_id=1454132163] [node name="Arrow004" type="Sprite2D" parent="GuestList" unique_id=1454132163]
position = Vector2(154.4564, 262.38947) position = Vector2(154.4564, 262.38947)
rotation = -0.011010677 rotation = -0.011010677