Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 

26 lignes
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()