mirror of
https://github.com/Relintai/Godot-TextEditor.git
synced 2025-02-09 08:20:05 +01:00
13 lines
255 B
GDScript
13 lines
255 B
GDScript
tool
|
|
extends Node2D
|
|
|
|
export(String, MULTILINE) var text:String
|
|
|
|
func _draw():
|
|
var words = PoolStringArray()
|
|
for word in text.split("\n"):
|
|
word = TE_Util._sanitize_word(word)
|
|
if word:
|
|
words.append("\"%s\"" % word)
|
|
print("[%s]" % words.join(","))
|