This commit is contained in:
Bryce
2025-08-01 08:34:51 -07:00
parent 15f11fc0f3
commit 44d3f10875
77 changed files with 605 additions and 713 deletions

View File

@@ -6,7 +6,7 @@ extends "res://addons/cutscene_editor/editor/nodes/BaseGraphNode.gd"
func _init() -> void:
node_type = "animation"
node_id = "animation_" + str(randi())
name = "animation_" + str(randi())
title = "Animation"
modulate = Color(0.8, 0.4, 0.8) # Purple

View File

2
addons/cutscene_editor/editor/nodes/BaseGraphNode.gd Normal file → Executable file
View File

@@ -20,7 +20,7 @@ enum NodeState {
# Properties
var node_type: String = "base"
var node_id: String # Unique identifier for the node
var action_parameters: Dictionary = {} # Stores parameter values
var current_state: int = NodeState.IDLE
var error_message: String = ""

View File

@@ -6,7 +6,7 @@ extends "res://addons/cutscene_editor/editor/nodes/BaseGraphNode.gd"
func _init() -> void:
node_type = "dialogue"
node_id = "dialogue_" + str(randi())
name = "dialogue_" + str(randi())
title = "Dialogue"
modulate = Color(1.0, 1.0, 0.5) # Yellow
resizable=true

View File

2
addons/cutscene_editor/editor/nodes/EntryNode.gd Normal file → Executable file
View File

@@ -6,7 +6,7 @@ extends "res://addons/cutscene_editor/editor/nodes/BaseGraphNode.gd"
func _init() -> void:
node_type = "entry"
node_id = "entry_" + str(randi())
name = "entry_" + str(randi())
title = "Start"
modulate = Color(0.5, 1.0, 0.5) # Light green

14
addons/cutscene_editor/editor/nodes/EntryNode.tscn Normal file → Executable file
View File

@@ -1,15 +1,23 @@
[gd_scene load_steps=2 format=3 uid="uid://entrynodetscn"]
[gd_scene load_steps=2 format=3 uid="uid://sfwelq3tmwkv"]
[ext_resource type="Script" path="res://addons/cutscene_editor/editor/nodes/EntryNode.gd" id="1_entry"]
[node name="EntryNode" type="GraphNode"]
modulate = Color(0.5, 1.0, 0.5, 1)
modulate = Color(0.5, 1, 0.5, 1)
custom_minimum_size = Vector2(100, 0)
title = "Start"
slot/0/left_enabled = false
slot/0/left_type = 0
slot/0/left_color = Color(0, 0, 0, 0)
slot/0/left_icon = null
slot/0/right_enabled = true
slot/0/right_type = 0
slot/0/right_color = Color(0, 0, 0, 1)
slot/0/right_icon = null
slot/0/draw_stylebox = true
script = ExtResource("1_entry")
script = ExtResource("1_entry")
[node name="Label" type="Label" parent="."]
layout_mode = 2
text = "completed
"

2
addons/cutscene_editor/editor/nodes/ExitNode.gd Normal file → Executable file
View File

@@ -6,7 +6,7 @@ extends "res://addons/cutscene_editor/editor/nodes/BaseGraphNode.gd"
func _init() -> void:
node_type = "exit"
node_id = "exit_" + str(randi())
name = "exit_" + str(randi())
title = "End"
modulate = Color(1.0, 0.5, 0.5) # Light red

12
addons/cutscene_editor/editor/nodes/ExitNode.tscn Normal file → Executable file
View File

@@ -1,14 +1,22 @@
[gd_scene load_steps=2 format=3 uid="uid://exitnodetscn"]
[ext_resource type="Script" path="res://addons/cutscene_editor/editor/nodes/ExitNode.gd" id="1_exit"]
[node name="ExitNode" type="GraphNode"]
modulate = Color(1.0, 0.5, 0.5, 1)
modulate = Color(1, 0.5, 0.5, 1)
custom_minimum_size = Vector2(100, 0)
title = "End"
slot/0/left_enabled = true
slot/0/left_type = 0
slot/0/left_color = Color(0, 0, 0, 1)
slot/0/left_icon = null
slot/0/right_enabled = false
slot/0/right_type = 0
slot/0/right_color = Color(0, 0, 0, 0)
slot/0/right_icon = null
slot/0/draw_stylebox = true
script = ExtResource("1_exit")
script = ExtResource("1_exit")
[node name="Label" type="Label" parent="."]
layout_mode = 2
text = "Dependency"

12
addons/cutscene_editor/editor/nodes/MoveActionNode.gd Normal file → Executable file
View File

@@ -6,7 +6,7 @@ extends "res://addons/cutscene_editor/editor/nodes/BaseGraphNode.gd"
func _init() -> void:
node_type = "move"
node_id = "move_" + str(randi())
name = "move_" + str(randi())
title = "Move"
modulate = Color(0.4, 0.6, 1.0) # Blue
@@ -22,6 +22,16 @@ func _ready() -> void:
action_parameters["target_y"] = 0.0
action_parameters["speed"] = 100.0
func set_parameter(pname, value) -> void:
super.set_parameter(name, value)
if pname == "character":
$VBoxContainer/CharacterEDit.text = value
elif pname == "target_x":
$VBoxContainer/HBoxContainer/x.text = value
elif pname == "target_y":
$VBoxContainer/HBoxContainer/y.text = value
elif pname == "speed":
$VBoxContainer/speed.text = value
func _on_character_changed(new_text: String) -> void:
set_parameter("character", new_text)

View File

@@ -23,7 +23,7 @@ layout_mode = 2
[node name="Character" type="Label" parent="VBoxContainer"]
layout_mode = 2
[node name="TextEdit" type="LineEdit" parent="VBoxContainer"]
[node name="CharacterEDit" type="LineEdit" parent="VBoxContainer"]
custom_minimum_size = Vector2(0, 32.865)
layout_mode = 2
text = "aoeu"
@@ -49,7 +49,7 @@ text = "Speed"
[node name="speed" type="LineEdit" parent="VBoxContainer"]
layout_mode = 2
[connection signal="text_changed" from="VBoxContainer/TextEdit" to="." method="_on_character_changed"]
[connection signal="text_changed" from="VBoxContainer/CharacterEDit" to="." method="_on_character_changed"]
[connection signal="text_changed" from="VBoxContainer/HBoxContainer/x" to="." method="_on_target_x_changed"]
[connection signal="text_changed" from="VBoxContainer/HBoxContainer/y" to="." method="_on_target_y_changed"]
[connection signal="text_change_rejected" from="VBoxContainer/speed" to="." method="_on_speed_text_change_rejected"]

View File

@@ -14,7 +14,7 @@ var container_rect: PanelContainer # Visual container for child nodes
func _init() -> void:
node_type = "parallel"
node_id = "parallel_" + str(randi())
name = "parallel_" + str(randi())
title = "Parallel Group"
modulate = Color(1.0, 0.6, 0.2) # Orange

2
addons/cutscene_editor/editor/nodes/TurnActionNode.gd Normal file → Executable file
View File

@@ -6,7 +6,7 @@ extends "res://addons/cutscene_editor/editor/nodes/BaseGraphNode.gd"
func _init() -> void:
node_type = "turn"
node_id = "turn_" + str(randi())
name = "turn_" + str(randi())
title = "Turn"
modulate = Color(0.5, 1.0, 0.5) # Green

View File

0
addons/cutscene_editor/editor/nodes/WaitActionNode.gd Normal file → Executable file
View File

View File