Skip to content

Commit

Permalink
Add option for the height ratio of the console panel
Browse files Browse the repository at this point in the history
  • Loading branch information
limbonaut committed Sep 11, 2024
1 parent f2246b1 commit b0a2080
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions console_options.gd
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ const CONFIG_PATH := "res://addons/limbo_console.cfg"
"usage": "help",
"exit": "quit",
}
@export var custom_theme: String = "res://addons/limbo_console_theme.tres"
@export var disable_in_release_build: bool = false
@export var print_to_stdout: bool = false

## Print empty line after each command execution.
@export var sparse_mode: bool = false
@export_category("appearance")
@export var custom_theme: String = "res://addons/limbo_console_theme.tres"
@export var height_ratio: float = 0.5
@export var sparse_mode: bool = false # Print empty line after each command execution.

@export_category("greet")
@export var greet_user: bool = true
Expand Down
2 changes: 1 addition & 1 deletion limbo_console.gd
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ func usage(p_command_name: String) -> Error:
func _build_gui() -> void:
var panel := PanelContainer.new()
_control = panel
panel.anchor_bottom = 0.5
panel.anchor_bottom = _options.height_ratio
panel.anchor_right = 1.0
add_child(panel)

Expand Down

0 comments on commit b0a2080

Please sign in to comment.