Преглед на файлове

:wrench: Configure the plugin

DricomDragon преди 2 години
родител
ревизия
2ca6ec97de
променени са 1 файла, в които са добавени 6 реда и са изтрити 4 реда
  1. 6 4
      godot/addons/slide_show/plugin.gd

+ 6 - 4
godot/addons/slide_show/plugin.gd

@@ -3,10 +3,12 @@ extends EditorPlugin
 
 
 func _enter_tree():
-	# Initialization of the plugin goes here.
-	pass
+	add_custom_type("Focus", "Camera2D", preload("res://addons/slide_show/projector/focus/Focus.gd"), preload("res://icon.svg"))
+	add_custom_type("Show", "Node2D", preload("res://addons/slide_show/projector/show/Show.gd"), preload("res://icon.svg"))
+	add_custom_type("Slide", "Node2D", preload("res://addons/slide_show/projector/slide/Slide.gd"), preload("res://icon.svg"))
 
 
 func _exit_tree():
-	# Clean-up of the plugin goes here.
-	pass
+	remove_custom_type("Slide")
+	remove_custom_type("Show")
+	remove_custom_type("Focus")