1
0
mirror of https://github.com/JohnBreaux/Boat-Battle.git synced 2025-02-04 12:28:35 +00:00

17 lines
340 B
GDScript3
Raw Normal View History

extends TextEdit
# Called when the node enters the scene tree for the first time.
func _ready():
2021-10-20 06:00:09 -05:00
var _errno = MessageBus.connect("print_console", self, "_on_Debug_print_text")
grab_focus()
func _on_Debug_print_text(text):
insert_text_at_cursor(text)
2021-10-20 05:13:24 -05:00
func _on_Debug_clear_out():
cursor_set_line(0)
cursor_set_column(0)
text = "";