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.
 
 

17 lines
537 B

  1. tool
  2. extends EditorPlugin
  3. var yarn_spinner_importer
  4. func _enter_tree():
  5. yarn_spinner_importer = preload("yarn_spinner_importer.gd").new()
  6. add_custom_type("YarnScript", "Resource", preload("yarn_script.gd"), preload("icon.png"))
  7. add_custom_type("YarnRunnerNode", "Node", preload("yarn_runner_node.gd"), preload("icon.png"))
  8. add_import_plugin(yarn_spinner_importer)
  9. func _exit_tree():
  10. remove_custom_type("YarnScript")
  11. remove_custom_type("YarnRunnerNode")
  12. remove_import_plugin(yarn_spinner_importer)
  13. yarn_spinner_importer = null