2020-05-09 19:07:31 +02:00
|
|
|
tool
|
|
|
|
extends EditorPlugin
|
|
|
|
|
|
|
|
|
2020-09-22 10:31:46 +02:00
|
|
|
var asciicast_import_plugin
|
|
|
|
|
|
|
|
|
2020-05-09 19:07:31 +02:00
|
|
|
func _enter_tree():
|
2020-09-22 10:31:46 +02:00
|
|
|
asciicast_import_plugin = preload("res://addons/godot_xterm/import_plugins/asciicast_import_plugin.gd").new()
|
|
|
|
add_import_plugin(asciicast_import_plugin)
|
|
|
|
|
|
|
|
var asciicast_script = preload("res://addons/godot_xterm/resources/asciicast.gd")
|
|
|
|
add_custom_type("Asciicast", "Animation", asciicast_script, null)
|
|
|
|
|
2020-09-17 11:23:01 +02:00
|
|
|
var terminal_script = preload("res://addons/godot_xterm/nodes/terminal/terminal.gdns")
|
|
|
|
var terminal_icon = preload("res://addons/godot_xterm/nodes/terminal/terminal_icon.svg")
|
2020-09-17 10:14:04 +02:00
|
|
|
add_custom_type("Terminal", "Control", terminal_script, terminal_icon)
|
|
|
|
|
2020-09-17 11:23:01 +02:00
|
|
|
var pseudoterminal_script = preload("res://addons/godot_xterm/nodes/pseudoterminal/pseudoterminal.gdns")
|
|
|
|
var pseudoterminal_icon = preload("res://addons/godot_xterm/nodes/pseudoterminal/pseudoterminal_icon.svg")
|
2020-09-17 10:14:04 +02:00
|
|
|
add_custom_type("Pseudoterminal", "Node", pseudoterminal_script, pseudoterminal_icon)
|
2020-05-09 19:07:31 +02:00
|
|
|
|
|
|
|
|
|
|
|
func _exit_tree():
|
2020-09-22 10:31:46 +02:00
|
|
|
remove_import_plugin(asciicast_import_plugin)
|
|
|
|
asciicast_import_plugin = null
|
|
|
|
|
|
|
|
remove_custom_type("Asciicast")
|
2020-05-09 19:07:31 +02:00
|
|
|
remove_custom_type("Terminal")
|
2020-09-17 10:14:04 +02:00
|
|
|
remove_custom_type("Psuedoterminal")
|