godot-xterm/addons/godot_xterm/plugin.gd
2020-10-05 17:56:55 +07:00

17 lines
620 B
GDScript

tool
extends EditorPlugin
func _enter_tree():
var terminal_script = preload("res://addons/godot_xterm/terminal.gdns")
var terminal_icon = preload("res://addons/godot_xterm/terminal_icon.svg")
add_custom_type("Terminal", "Control", terminal_script, terminal_icon)
var pseudoterminal_script = preload("res://addons/godot_xterm/pseudoterminal.gdns")
var pseudoterminal_icon = preload("res://addons/godot_xterm/pseudoterminal_icon.svg")
add_custom_type("Pseudoterminal", "Node", pseudoterminal_script, pseudoterminal_icon)
func _exit_tree():
remove_custom_type("Terminal")
remove_custom_type("Psuedoterminal")