6fc1c3a4d1
Not all APIs are provided yet, please request whathever you are missing. Some example plugins are provided in demos/plugins. Just copy them to a folder in your project named addons/ and then enable them from the project settings. Have fun!
23 lines
No EOL
403 B
GDScript
23 lines
No EOL
403 B
GDScript
tool
|
|
extends EditorPlugin
|
|
|
|
var dock = null
|
|
|
|
func _enter_tree():
|
|
# When this plugin node enters tree, add the custom type
|
|
|
|
dock = preload("res://addons/custom_dock/custom_dock.scn").instance()
|
|
|
|
add_control_to_dock( DOCK_SLOT_LEFT_UL, dock )
|
|
|
|
func _exit_tree():
|
|
|
|
# Remove from docks (must be called so layout is updated and saved)
|
|
remove_control_from_docks(dock)
|
|
# Remove the node
|
|
dock.free()
|
|
|
|
|
|
|
|
|
|
|