docs: added a bunch of TODOs

This commit is contained in:
Bram Dingelstad 2021-12-07 12:33:49 +01:00
parent b8eb90cbf7
commit d457c38974
3 changed files with 10 additions and 1 deletions

View file

@ -7,6 +7,10 @@ onready var button_template = $Options/List/ButtonTemplate
onready var wol_editor = find_parent('WolEditor') 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(): func _ready():
hide() hide()
$Wol.connect('line', self, '_on_line') $Wol.connect('line', self, '_on_line')
@ -45,6 +49,8 @@ func _on_line(line):
var line_node = line_template.duplicate() var line_node = line_template.duplicate()
$Content/List.add_child(line_node) $Content/List.add_child(line_node)
$Content/List/PaddingBottom.raise() $Content/List/PaddingBottom.raise()
# TODO: Add hash() based color from speaker
line_node.get_node('RichTextLabel').bbcode_text = line.text line_node.get_node('RichTextLabel').bbcode_text = line.text
line_node.show() line_node.show()
yield(get_tree(), 'idle_frame') yield(get_tree(), 'idle_frame')

View file

@ -176,7 +176,8 @@ func _on_graph_edit_input(event):
func _input(event): func _input(event):
if event is InputEventKey \ if event is InputEventKey \
and not event.pressed and event.scancode == KEY_DELETE \ 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.dialog_text = original_delete_node_dialog % selected_node.name
$DeleteNodeDialog.popup() $DeleteNodeDialog.popup()

View file

@ -14,6 +14,8 @@ var program
onready var text_edit = $TextEdit onready var text_edit = $TextEdit
# TODO: Add syntax highlighting
func _ready(): func _ready():
connect('offset_changed', self, '_on_offset_changed') connect('offset_changed', self, '_on_offset_changed')
text_edit.connect('text_changed', self, '_on_text_changed') text_edit.connect('text_changed', self, '_on_text_changed')