plugin.gd 666 B

1234567891011121314
  1. @tool
  2. extends EditorPlugin
  3. func _enter_tree():
  4. add_custom_type("Focus", "Camera2D", preload("res://addons/slide_show/projector/focus/Focus.gd"), preload("res://addons/slide_show/projector/focus/CameraTexture_green.svg"))
  5. add_custom_type("Show", "Node2D", preload("res://addons/slide_show/projector/show/Show.gd"), preload("res://addons/slide_show/projector/show/MainMovieWrite_green.svg"))
  6. add_custom_type("Slide", "Node2D", preload("res://addons/slide_show/projector/slide/Slide.gd"), preload("res://addons/slide_show/projector/slide/Image_green.svg"))
  7. func _exit_tree():
  8. remove_custom_type("Slide")
  9. remove_custom_type("Show")
  10. remove_custom_type("Focus")