diff --git a/addons/godot_xterm/icons/pty_icon.svg.import b/addons/godot_xterm/icons/pty_icon.svg.import index 8334e87..b825222 100644 --- a/addons/godot_xterm/icons/pty_icon.svg.import +++ b/addons/godot_xterm/icons/pty_icon.svg.import @@ -2,7 +2,7 @@ importer="texture" type="CompressedTexture2D" -uid="uid://q1dpdt7xx8jf" +uid="uid://ixravk0w4lkt" path="res://.godot/imported/pty_icon.svg-7c3f500292e2f95935d23c435d6de47f.ctex" metadata={ "vram_texture": false @@ -31,7 +31,7 @@ process/normal_map_invert_y=false process/hdr_as_srgb=false process/hdr_clamp_exposure=false process/size_limit=0 -detect_3d/compress_to=1 +detect_3d/compress_to=0 svg/scale=1.0 editor/scale_with_editor_scale=false editor/convert_colors_with_editor_theme=false diff --git a/addons/godot_xterm/icons/terminal_icon.svg.import b/addons/godot_xterm/icons/terminal_icon.svg.import index d90c3ce..515e988 100644 --- a/addons/godot_xterm/icons/terminal_icon.svg.import +++ b/addons/godot_xterm/icons/terminal_icon.svg.import @@ -31,7 +31,7 @@ process/normal_map_invert_y=false process/hdr_as_srgb=false process/hdr_clamp_exposure=false process/size_limit=0 -detect_3d/compress_to=1 +detect_3d/compress_to=0 svg/scale=1.0 editor/scale_with_editor_scale=false editor/convert_colors_with_editor_theme=false diff --git a/addons/godot_xterm/native/godot-xterm.gdextension b/addons/godot_xterm/native/godot-xterm.gdextension index ee8affc..4d56fc4 100644 --- a/addons/godot_xterm/native/godot-xterm.gdextension +++ b/addons/godot_xterm/native/godot-xterm.gdextension @@ -3,6 +3,11 @@ entry_symbol = "godot_xterm_library_init" compatibility_minimum = "4.2.0" +[icons] + +Terminal = "res://addons/godot_xterm/icons/terminal_icon.svg" +PTY = "res://addons/godot_xterm/icons/pty_icon.svg" + [libraries] linux.debug.x86_64 = "res://addons/godot_xterm/native/bin/libgodot-xterm.linux.template_debug.x86_64.so" diff --git a/addons/godot_xterm/plugin.gd b/addons/godot_xterm/plugin.gd index 0fb9f45..b8c9a66 100644 --- a/addons/godot_xterm/plugin.gd +++ b/addons/godot_xterm/plugin.gd @@ -17,13 +17,8 @@ func _enter_tree(): var asciicast_script = preload("./resources/asciicast.gd") add_custom_type("Asciicast", "Animation", asciicast_script, null) - var terminal_icon = load( - "%s/nodes/terminal/terminal_icon.svg" % get_script().resource_path.get_base_dir() - ) - if pty_supported: var base_dir = get_script().resource_path.get_base_dir() - var pty_icon = load("%s/nodes/pty/pty_icon.svg" % base_dir) var pty_script match OS.get_name(): "Linux", "FreeBSD", "NetBSD", "OpenBSD", "BSD", "macOS":