Files
experiment-adventure-ai/addons/cutscene_editor/editor/nodes/ExitNode.gd
2025-08-01 08:34:51 -07:00

21 lines
499 B
GDScript
Executable File

@tool
class_name ExitNode
extends "res://addons/cutscene_editor/editor/nodes/BaseGraphNode.gd"
# Exit point for the cutscene
func _init() -> void:
node_type = "exit"
name = "exit_" + str(randi())
title = "End"
modulate = Color(1.0, 0.5, 0.5) # Light red
# Exit node has one input connection
# No output connections
var input_slot = 0
set_slot(input_slot, true, 0, Color(0, 0, 0), false, 0, Color(0, 0, 0, 0))
func _ready() -> void:
super._ready()
# Exit node has no parameter fields