mirror of
https://github.com/lihop/godot-xterm.git
synced 2024-11-10 04:40:25 +01:00
a022104230
Former-commit-id: f9474fe533
17 lines
620 B
GDScript
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")
|