2025-09-06 11:23:11 +08:00
|
|
|
@tool
|
2025-08-29 14:10:23 +08:00
|
|
|
extends FullscreenPanelBase
|
|
|
|
|
|
2026-05-04 08:52:20 +08:00
|
|
|
@onready var audio: AudioStreamPlayer2D = $%audio
|
|
|
|
|
@onready var deadreason: RichTextLabel = $%deadreason
|
2026-05-05 06:51:48 +08:00
|
|
|
@onready var gameControl: GameControl = $%gameControl
|
2025-08-29 14:10:23 +08:00
|
|
|
|
2025-09-07 13:39:50 +08:00
|
|
|
func beforeOpen(args: Array = []):
|
2025-08-29 14:10:23 +08:00
|
|
|
audio.play()
|
2026-05-08 17:13:51 +08:00
|
|
|
deadreason.text = ("[color=gray]%s[/color]") % args[0]
|
2026-05-04 08:52:20 +08:00
|
|
|
func afterOpen(_args: Array = []):
|
2026-05-05 06:51:48 +08:00
|
|
|
gameControl.enable()
|