Added console panel with device and host console, logs and domain console.

This commit is contained in:
RedNicStone committed 2026-11-09 21:15:57 +01:00
1 parent 6038b816b7
commit b98ed82619
17 files changed
+551 -22

No files matched your search

+51
View File
@@ -0,0 +1,51 @@
[gd_scene format=3]
[ext_resource type="PackedScene" path="res://components/selectable_container.tscn" id="1"]
[ext_resource type="Script" path="res://scripts/console_panel.gd" id="2"]
[ext_resource type="PackedScene" path="res://components/console_session.tscn" id="3"]
[node name="ConsolePanel" instance=ExtResource("1")]
custom_minimum_size = Vector2(720, 420)
script = ExtResource("2")
title = "CONSOLE"
focus_key = 0
initial_focus = NodePath("Tabs/ROV/Input/Command")
[node name="Label" parent="MarginContainer/VBoxContainer/HBoxContainer"]
label_settings = null
theme_override_font_sizes/font_size = 18
text = "CONSOLE"
[node name="Tabs" type="TabContainer" parent="."]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
current_tab = 0
[node name="ROV" parent="Tabs" instance=ExtResource("3")]
layout_mode = 2
[node name="Host" parent="Tabs" instance=ExtResource("3")]
layout_mode = 2
session_id = "host"
tab_label = "Host"
shortcut = 4194337
prompt = "host $"
introduction = "Host shell disconnected."
[node name="Logs" parent="Tabs" instance=ExtResource("3")]
layout_mode = 2
session_id = "logs"
tab_label = "Logs"
shortcut = 4194338
read_only = true
introduction = "ROV journal stream disconnected."
[node name="Server" parent="Tabs" instance=ExtResource("3")]
layout_mode = 2
session_id = "server"
tab_label = "Server"
shortcut = 4194339
prompt = "server >"
introduction = "Server shell disconnected."
+73
View File
@@ -0,0 +1,73 @@
[gd_scene format=3]
[ext_resource type="Script" path="res://scripts/console_session.gd" id="1"]
[ext_resource type="Font" path="res://themes/console_mono.tres" id="2_mono"]
[node name="ConsoleSession" type="VBoxContainer"]
layout_mode = 2
theme_override_constants/separation = 6
script = ExtResource("1")
[node name="Status" type="HBoxContainer" parent="."]
layout_mode = 2
[node name="Connection" type="Label" parent="Status"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_font_sizes/font_size = 14
text = "Not connected"
[node name="Follow" type="CheckButton" parent="Status"]
layout_mode = 2
theme_override_font_sizes/font_size = 14
text = "Follow"
button_pressed = true
[node name="Clear" type="Button" parent="Status"]
layout_mode = 2
theme_override_font_sizes/font_size = 14
text = "Clear"
[node name="Output" type="RichTextLabel" parent="."]
custom_minimum_size = Vector2(0, 160)
layout_mode = 2
size_flags_vertical = 3
focus_mode = 2
theme_override_fonts/normal_font = ExtResource("2_mono")
theme_override_font_sizes/normal_font_size = 18
bbcode_enabled = false
scroll_following = true
selection_enabled = true
context_menu_enabled = true
[node name="Filter" type="HBoxContainer" parent="."]
visible = false
layout_mode = 2
[node name="Label" type="Label" parent="Filter"]
layout_mode = 2
text = "Filter"
[node name="Text" type="LineEdit" parent="Filter"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_fonts/font = ExtResource("2_mono")
theme_override_font_sizes/font_size = 18
placeholder_text = "Filter log text"
[node name="Input" type="HBoxContainer" parent="."]
layout_mode = 2
[node name="Prompt" type="Label" parent="Input"]
layout_mode = 2
theme_override_fonts/font = ExtResource("2_mono")
theme_override_font_sizes/font_size = 18
text = "rov $"
[node name="Command" type="LineEdit" parent="Input"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_fonts/font = ExtResource("2_mono")
theme_override_font_sizes/font_size = 18
placeholder_text = "Enter command…"