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.
 
 

26 lines
524 B

  1. extends YarnImporter
  2. export var yarn_file = ""
  3. func _ready():
  4. $ChoicesBox.hide()
  5. $LogPanel.hide()
  6. func on_dialogue_start():
  7. yield(.on_dialogue_start(), "completed")
  8. $LogPanel.show()
  9. $ChoicesBox.show()
  10. $LogPanel.clear()
  11. $ChoicesBox.clear()
  12. func on_new_line(line):
  13. yield($LogPanel.on_new_line(line), "completed")
  14. func on_choices(choices_list):
  15. return yield($ChoicesBox.on_choices(choices_list), "completed")
  16. func on_dialogue_end():
  17. yield(.on_dialogue_end(), "completed")
  18. $ChoicesBox.hide()
  19. $LogPanel.hide()