diff options
| author | Sophia Pearson <codergal89@gmail.com> | 2022-10-03 22:22:50 +0200 |
|---|---|---|
| committer | Sophia Pearson <codergal89@gmail.com> | 2022-10-04 22:18:18 +0200 |
| commit | e127ad39e742396030352240d829bc903b1d4464 (patch) | |
| tree | 10cc21d70bf13181aef7c8ad0344077ff63579a3 /addons/gut/gut_plugin.gd | |
| parent | ddbb045f6387a8ba23b1210b27a745516a387a52 (diff) | |
| download | texty-e127ad39e742396030352240d829bc903b1d4464.tar.xz texty-e127ad39e742396030352240d829bc903b1d4464.zip | |
godot: inital Godot 4 migration
Diffstat (limited to 'addons/gut/gut_plugin.gd')
| -rw-r--r-- | addons/gut/gut_plugin.gd | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/addons/gut/gut_plugin.gd b/addons/gut/gut_plugin.gd deleted file mode 100644 index 9e8743a..0000000 --- a/addons/gut/gut_plugin.gd +++ /dev/null @@ -1,28 +0,0 @@ -tool -extends EditorPlugin - -var _bottom_panel = null - - -func _enter_tree(): - _bottom_panel = preload('res://addons/gut/gui/GutBottomPanel.tscn').instance() - # Initialization of the plugin goes here - # Add the new type with a name, a parent type, a script and an icon - add_custom_type("Gut", "Control", preload("plugin_control.gd"), preload("icon.png")) - - var button = add_control_to_bottom_panel(_bottom_panel, 'GUT') - button.shortcut_in_tooltip = true - - yield(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 it from the engine when deactivated - remove_custom_type("Gut") - remove_control_from_bottom_panel(_bottom_panel) - _bottom_panel.free() |
