mirror of
https://github.com/lihop/godot-xterm.git
synced 2025-05-03 20:14:22 +02:00
Remove deprecated cols/rows properties of Terminal
This commit is contained in:
parent
8d656d8c71
commit
002fcf3b78
3 changed files with 1 additions and 57 deletions
|
@ -26,9 +26,6 @@ enum SelectionMode {
|
|||
|
||||
export(UpdateMode) var update_mode = UpdateMode.AUTO setget set_update_mode
|
||||
|
||||
var cols = 2 setget _set_cols, _get_cols # Deprecated.
|
||||
var rows = 2 setget _set_rows, _get_rows # Deprecated.
|
||||
|
||||
# If true, text in the terminal will be copied to the clipboard when selected.
|
||||
export(bool) var copy_on_selection
|
||||
|
||||
|
@ -70,36 +67,10 @@ func get_cols() -> int:
|
|||
return _cols
|
||||
|
||||
|
||||
func _get_cols() -> int:
|
||||
push_warning(
|
||||
"The 'cols' property of Terminal is deprecated and will be removed in a future version. Please use the `get_cols()` method instead."
|
||||
)
|
||||
return get_cols()
|
||||
|
||||
|
||||
func _set_cols(_value) -> void:
|
||||
push_error(
|
||||
"The 'cols' property of Terminal is read-only and determined by rect_size and the theme's font size."
|
||||
)
|
||||
|
||||
|
||||
func get_rows() -> int:
|
||||
return _rows
|
||||
|
||||
|
||||
func _get_rows() -> int:
|
||||
push_warning(
|
||||
"The 'rows' property of Terminal is deprecated and will be removed in a future version. Please use the `get_rows()` method instead."
|
||||
)
|
||||
return get_rows()
|
||||
|
||||
|
||||
func _set_rows(_value) -> void:
|
||||
push_error(
|
||||
"The 'rows' property of Terminal is read-only and determined by rect_size and the theme's font size."
|
||||
)
|
||||
|
||||
|
||||
func write(data) -> void:
|
||||
assert(
|
||||
data is PoolByteArray or data is String,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue