1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-27 22:41:56 +08:00
Files
Dog-Lynx-And-HCN/scripts/Statemachine/ThankMember.gd
T
fallingshrimp 5b9c87acd5 Add new UI components and functionality for member display
- Introduced a new image import for "陨落基围虾.jpg" to enhance visual assets.
- Created a Pause panel script to manage UI state transitions.
- Developed a Circle control for displaying avatars with customizable properties such as cyclotomy, colors, and border width.
- Implemented a ThankMember script to dynamically update member information including name, avatar, and description.
2025-09-06 22:29:59 +08:00

16 lines
442 B
GDScript

@tool
extends VBoxContainer
@export var memberName: String = "未命名成员"
@export var memberAvatar: Texture2D = null
@export var memberDescription: String = "未知描述"
@onready var avatar: Circle = $"%avatar"
@onready var nameLabel: Label = $"%name"
@onready var descriptionLabel: Label = $"%description"
func _process(_delta):
nameLabel.text = memberName
descriptionLabel.text = memberDescription
avatar.avatar = memberAvatar