2020-05-14 02:36:45 +02:00
|
|
|
tool
|
|
|
|
extends EditorPlugin
|
|
|
|
|
|
|
|
func _enter_tree():
|
2020-05-26 23:52:45 +02:00
|
|
|
add_autoload_singleton("Utilities","res://addons/easy_charts/Utilities/Scripts/utilities.gd")
|
2020-12-30 15:34:13 +01:00
|
|
|
add_custom_type("Chart","Control", load("res://addons/easy_charts/Utilities/Scripts/chart.gd"), preload("Utilities/icons/linechart.svg"))
|
2020-12-31 12:29:31 +01:00
|
|
|
add_custom_type("Chart2D","Node2D", load("res://addons/easy_charts/Utilities/Scripts/chart2d.gd"), preload("Utilities/icons/linechart2d.svg"))
|
2020-05-14 02:36:45 +02:00
|
|
|
|
|
|
|
func _exit_tree():
|
2020-05-26 23:52:45 +02:00
|
|
|
remove_custom_type("Chart")
|
|
|
|
remove_custom_type("Chart2D")
|
2020-05-14 02:36:45 +02:00
|
|
|
remove_autoload_singleton("Utilities")
|