mirror of
https://github.com/lihop/godot-xterm.git
synced 2024-11-10 04:40:25 +01:00
b5d3c6c9a5
Copied from Gut repo godot_4 branch commit: ba19a4c1b6f88160641a67a39729144046c6391f
24 lines
654 B
GDScript
24 lines
654 B
GDScript
@tool
|
|
extends EditorPlugin
|
|
|
|
var _bottom_panel = null
|
|
|
|
|
|
func _enter_tree():
|
|
_bottom_panel = preload('res://addons/gut/gui/GutBottomPanel.tscn').instantiate()
|
|
|
|
var button = add_control_to_bottom_panel(_bottom_panel, 'GUT')
|
|
button.shortcut_in_tooltip = true
|
|
|
|
await get_tree().create_timer(3).timeout
|
|
_bottom_panel.set_interface(get_editor_interface())
|
|
_bottom_panel.set_plugin(self)
|
|
_bottom_panel.set_panel_button(button)
|
|
_bottom_panel.load_shortcuts()
|
|
|
|
|
|
func _exit_tree():
|
|
# Clean-up of the plugin goes here
|
|
# Always remember to remove_at it from the engine when deactivated
|
|
remove_control_from_bottom_panel(_bottom_panel)
|
|
_bottom_panel.free()
|