You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

14 lines
219 B

  1. extends Control
  2. class_name LogPanel
  3. func _ready():
  4. $RichTextLabel.text = ""
  5. func on_new_line(text):
  6. show()
  7. $RichTextLabel.text += text + '\n'
  8. yield($TextButton, "pressed")
  9. func clear():
  10. $RichTextLabel.text = ''