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()
|
2025-12-14 15:06:22 +08:00
|
|
|
var reasonTemplate = MathTool.randomChoiceFrom(GameRule.deadReasons)
|
2025-09-13 20:52:19 +08:00
|
|
|
deadreason.text = ("[color=gray]" + reasonTemplate + "凶手是[b]%s[/b]的[b]%s[/b]。[/color]") % args
|
2026-05-04 08:52:20 +08:00
|
|
|
func afterOpen(_args: Array = []):
|
2026-05-05 06:51:48 +08:00
|
|
|
gameControl.enable()
|