mask snippet
This commit is contained in:
@@ -15,6 +15,7 @@ var pref_score_name: Dictionary[CharacterResource.Preference, String] = {
|
||||
}
|
||||
|
||||
@onready var chara: Sprite2D = $"../GuestList/Chara"
|
||||
@onready var mask: Sprite2D = $Mask
|
||||
|
||||
@onready var label: Label = $Label
|
||||
|
||||
@@ -50,6 +51,8 @@ func cycle_through_items() -> void:
|
||||
var index = current_item % items.size()
|
||||
var item = items.get(index)
|
||||
if item is MaskResource:
|
||||
mask.visible = true
|
||||
mask.texture = item.mask_sprite
|
||||
label.text = "\n\n\n\n" + item.name + "\n\n" + item.description
|
||||
elif item is CharacterResource:
|
||||
chara.visible = true
|
||||
|
||||
Reference in New Issue
Block a user