From d457c38974f34bbda8fb771682c8c4547fcb5fdc Mon Sep 17 00:00:00 2001 From: Bram Dingelstad Date: Tue, 7 Dec 2021 12:33:49 +0100 Subject: [PATCH] docs: added a bunch of TODOs --- addons/Wol/editor/Preview.gd | 6 ++++++ addons/Wol/editor/WolEditor.gd | 3 ++- addons/Wol/editor/WolGraphNode.gd | 2 ++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/addons/Wol/editor/Preview.gd b/addons/Wol/editor/Preview.gd index 39f0991..d0d8503 100644 --- a/addons/Wol/editor/Preview.gd +++ b/addons/Wol/editor/Preview.gd @@ -7,6 +7,10 @@ onready var button_template = $Options/List/ButtonTemplate onready var wol_editor = find_parent('WolEditor') +# TODO: Make sure all focus is lost when clicking this pane +# TODO: Add restart button +# TODO: Add next button + func _ready(): hide() $Wol.connect('line', self, '_on_line') @@ -45,6 +49,8 @@ func _on_line(line): var line_node = line_template.duplicate() $Content/List.add_child(line_node) $Content/List/PaddingBottom.raise() + # TODO: Add hash() based color from speaker + line_node.get_node('RichTextLabel').bbcode_text = line.text line_node.show() yield(get_tree(), 'idle_frame') diff --git a/addons/Wol/editor/WolEditor.gd b/addons/Wol/editor/WolEditor.gd index 5b4c891..174b5b2 100644 --- a/addons/Wol/editor/WolEditor.gd +++ b/addons/Wol/editor/WolEditor.gd @@ -176,7 +176,8 @@ func _on_graph_edit_input(event): func _input(event): if event is InputEventKey \ and not event.pressed and event.scancode == KEY_DELETE \ - and selected_node: + and selected_node \ + and not $HBoxContainer/Editor.visible: $DeleteNodeDialog.dialog_text = original_delete_node_dialog % selected_node.name $DeleteNodeDialog.popup() diff --git a/addons/Wol/editor/WolGraphNode.gd b/addons/Wol/editor/WolGraphNode.gd index 3d85348..67db7b1 100644 --- a/addons/Wol/editor/WolGraphNode.gd +++ b/addons/Wol/editor/WolGraphNode.gd @@ -14,6 +14,8 @@ var program onready var text_edit = $TextEdit +# TODO: Add syntax highlighting + func _ready(): connect('offset_changed', self, '_on_offset_changed') text_edit.connect('text_changed', self, '_on_text_changed')