mirror of
https://github.com/JohnBreaux/Boat-Battle.git
synced 2024-11-15 13:25:58 +00:00
17 lines
362 B
GDScript
17 lines
362 B
GDScript
extends TextEdit
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
func _ready():
|
|
var _errno = MessageBus.connect("print_console", self, "_on_Debug_print_text")
|
|
pass # Replace with function body.
|
|
|
|
|
|
func _on_Debug_print_text(text):
|
|
insert_text_at_cursor(text)
|
|
|
|
|
|
func _on_Debug_clear_out():
|
|
cursor_set_line(0)
|
|
cursor_set_column(0)
|
|
text = "";
|