21 lines
502 B
GDScript
21 lines
502 B
GDScript
@tool
|
|
class_name ExitNode
|
|
extends "res://addons/cutscene_editor/editor/nodes/BaseGraphNode.gd"
|
|
|
|
# Exit point for the cutscene
|
|
|
|
func _init() -> void:
|
|
node_type = "exit"
|
|
node_id = "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
|