mirror of
https://github.com/lihop/godot-xterm.git
synced 2025-05-04 20:24:23 +02:00
Move terminal.gd and pty.gd to godot_xterm directory
Makes for pretty paths when extending scripts: `extends "res://addons/godot_xterm/terminal.gd"` vs. `extends "res://addons/godot_xterm/nodes/terminal/terminal.gd"` Currently "res://addons/godot_xterm/pty.gd" is acutally `pty_unix.gd`. This is okay for now as the PTY node is only supported on Unix platforms. However, we will need to sort it out when adding Windows support as part of #25. Also remove the GDXterm namespace.
This commit is contained in:
parent
e6db81615e
commit
9d15420df3
22 changed files with 46 additions and 43 deletions
|
@ -17,7 +17,7 @@ func _enter_tree():
|
|||
var asciicast_script = preload("./resources/asciicast.gd")
|
||||
add_custom_type("Asciicast", "Animation", asciicast_script, null)
|
||||
|
||||
var terminal_script = preload("./nodes/terminal/terminal.gd")
|
||||
var terminal_script = preload("./terminal.gd")
|
||||
var terminal_icon = preload("./nodes/terminal/terminal_icon.svg")
|
||||
add_custom_type("Terminal", "Control", terminal_script, terminal_icon)
|
||||
|
||||
|
@ -27,7 +27,7 @@ func _enter_tree():
|
|||
var pty_script
|
||||
match OS.get_name():
|
||||
"X11", "Server", "OSX":
|
||||
pty_script = load("%s/nodes/pty/unix/pty_unix.gd" % base_dir)
|
||||
pty_script = load("%s/nodes/pty/pty.gd" % base_dir)
|
||||
add_custom_type("PTY", "Node", pty_script, pty_icon)
|
||||
var terminal_settings_script = preload("./editor_plugins/terminal/settings/terminal_settings.gd")
|
||||
add_custom_type("TerminalSettings", "Resource", terminal_settings_script, null)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue