pandemonium_engine_easy_charts/addons/easy_charts/plugin.gd
Nicolò Santilio 0cf6873d75 update v0.2.8
2020-05-30 01:42:58 +02:00

15 lines
708 B
GDScript

tool
extends EditorPlugin
func _enter_tree():
add_autoload_singleton("Utilities","res://addons/easy_charts/Utilities/Scripts/utilities.gd")
# add_custom_type("ChartObject","Node", load("res://addons/easy_charts/Utilities/Scripts/ChartObject.gd"), preload("Utilities/icons/linechart.svg"))
add_custom_type("Chart","Control", load("res://addons/easy_charts/Utilities/Scripts/Chart.gd"), preload("Utilities/icons/linechart.svg"))
add_custom_type("Chart2D","Node2D", preload("Utilities/Scripts/Chart2D.gd"), preload("Utilities/icons/linechart2d.svg"))
func _exit_tree():
remove_custom_type("Chart")
remove_custom_type("Chart2D")
# remove_custom_type("ChartObject")
remove_autoload_singleton("Utilities")