Files
leonwww/addons/SmoothScroll/plugin.gd
2025-07-23 15:23:32 +03:00

13 lines
399 B
GDScript

@tool
extends EditorPlugin
func _enter_tree():
add_custom_type("ScrollDamper", "Resource", preload("scroll_damper/scroll_damper.gd"), preload("scroll_damper/icon.svg"))
add_custom_type("SmoothScrollContainer", "ScrollContainer", preload("SmoothScrollContainer.gd"), preload("class-icon.svg"))
func _exit_tree():
remove_custom_type("ScrollDamper")
remove_custom_type("SmoothScrollContainer")