Don't register TPut util as a global unique class

This commit is contained in:
Leroy Hopson 2021-07-02 23:58:25 +07:00
parent ca7def60e8
commit 3759d3a0b9
No known key found for this signature in database
GPG key ID: D2747312A6DB51AA
5 changed files with 6 additions and 12 deletions

View file

@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Supported Godot version -> 3.3.2. - Supported Godot version -> 3.3.2.
- Set a default theme if no theme property has been set. - Set a default theme if no theme property has been set.
- Changed default font from Cousine to Hack, which is the same as Godot's script editor, and reduced size from 16 to 14. - Changed default font from Cousine to Hack, which is the same as Godot's script editor, and reduced size from 16 to 14.
- TPut no longer registered as a unique global class (i.e. removed `class_name TPut`).
### Fixed ### Fixed
- Don't swap red and blue channels of theme colors. - Don't swap red and blue channels of theme colors.

View file

@ -1,5 +1,4 @@
extends Reference extends Reference
class_name TPut
# Control Sequence Introducer # Control Sequence Introducer
const CSI = "\u001b[" const CSI = "\u001b["

View file

@ -8,6 +8,8 @@ extends Control
# - https://tldp.org/HOWTO/Bash-Prompt-HOWTO/x361.html # - https://tldp.org/HOWTO/Bash-Prompt-HOWTO/x361.html
# - https://www.youtube.com/watch?v=jTSQlIK_92w # - https://www.youtube.com/watch?v=jTSQlIK_92w
const TPut := preload("res://addons/godot_xterm/util/tput.gd")
# Title generated using command: toilet -f pagga GODOT XTERM # Title generated using command: toilet -f pagga GODOT XTERM
const TITLE = """ const TITLE = """
\r \r

View file

@ -1,9 +1,11 @@
extends Node extends Node
const TPut := preload("res://addons/godot_xterm/util/tput.gd")
signal exited(status) signal exited(status)
var line := "" var line := ""
var _tput: TPut var _tput
onready var terminal = $Terminal onready var terminal = $Terminal
onready var _has_js: bool = OS.has_feature("JavaScript") onready var _has_js: bool = OS.has_feature("JavaScript")

View file

@ -8,16 +8,6 @@
config_version=4 config_version=4
_global_script_classes=[ {
"base": "Reference",
"class": "TPut",
"language": "GDScript",
"path": "res://addons/godot_xterm/util/tput.gd"
} ]
_global_script_class_icons={
"TPut": ""
}
[application] [application]
config/name="Godot Xterm" config/name="Godot Xterm"