mirror of
https://github.com/lihop/godot-xterm.git
synced 2025-05-06 04:55:30 +02:00
Add asciicast importer
This commit is contained in:
parent
55544de93e
commit
ffa8561865
11 changed files with 199 additions and 77 deletions
|
@ -2,7 +2,16 @@ tool
|
|||
extends EditorPlugin
|
||||
|
||||
|
||||
var asciicast_import_plugin
|
||||
|
||||
|
||||
func _enter_tree():
|
||||
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)
|
||||
|
||||
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")
|
||||
add_custom_type("Terminal", "Control", terminal_script, terminal_icon)
|
||||
|
@ -13,5 +22,9 @@ func _enter_tree():
|
|||
|
||||
|
||||
func _exit_tree():
|
||||
remove_import_plugin(asciicast_import_plugin)
|
||||
asciicast_import_plugin = null
|
||||
|
||||
remove_custom_type("Asciicast")
|
||||
remove_custom_type("Terminal")
|
||||
remove_custom_type("Psuedoterminal")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue