您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

YarnSpinner.gd 524 B

4 年前
12345678910111213141516171819202122232425
  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()