dock_plugin.gd 403 B

1234567891011121314151617181920212223
  1. tool
  2. extends EditorPlugin
  3. var dock = null
  4. func _enter_tree():
  5. # When this plugin node enters tree, add the custom type
  6. dock = preload("res://addons/custom_dock/custom_dock.scn").instance()
  7. add_control_to_dock( DOCK_SLOT_LEFT_UL, dock )
  8. func _exit_tree():
  9. # Remove from docks (must be called so layout is updated and saved)
  10. remove_control_from_docks(dock)
  11. # Remove the node
  12. dock.free()