breadwinner/scenes/console/Console.tscn
Balogh Krisztián 6231073ad6 little restructure again, added CONSOLE!!!!
somewhat working console, fully developed from the ground up

some things work with it, but its still pretty buggy

currently runs on global autoload because its the easiest way rn, later on have to change it so that only if the player is in the game and console is enabled it can be toggled
2026-07-31 02:38:02 +02:00

74 lines
2.3 KiB
Text

[gd_scene format=3 uid="uid://bojihx1fwf426"]
[ext_resource type="Script" uid="uid://d05oodtjpja5k" path="res://scenes/console/console.gd" id="1_v2h8y"]
[node name="Console" type="Control" unique_id=1645877163]
layout_mode = 3
anchor_left = 0.3
anchor_right = 0.7
anchor_bottom = 0.193
grow_horizontal = 2
offset_transform_enabled = true
script = ExtResource("1_v2h8y")
[node name="Control" type="PanelContainer" parent="." unique_id=1597361814]
layout_mode = 1
anchors_preset = -1
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
[node name="MarginContainer" type="MarginContainer" parent="Control" unique_id=799180659]
layout_mode = 2
theme_override_constants/margin_left = 5
theme_override_constants/margin_top = 5
theme_override_constants/margin_right = 5
theme_override_constants/margin_bottom = 5
[node name="VboxContainer" type="VBoxContainer" parent="Control/MarginContainer" unique_id=2024139519]
layout_mode = 2
[node name="ConsoleLog" type="RichTextLabel" parent="Control/MarginContainer/VboxContainer" unique_id=158641778]
unique_name_in_owner = true
custom_maximum_size = Vector2(-1, 230)
layout_mode = 2
size_flags_vertical = 3
size_flags_stretch_ratio = 4.0
bbcode_enabled = true
scroll_following = true
text_direction = 1
[node name="ConsoleInputBox" type="HBoxContainer" parent="Control/MarginContainer/VboxContainer" unique_id=1042125568]
layout_mode = 2
size_flags_stretch_ratio = 0.5
[node name="Label" type="Label" parent="Control/MarginContainer/VboxContainer/ConsoleInputBox" unique_id=2023386683]
layout_mode = 2
size_flags_horizontal = 3
size_flags_stretch_ratio = 0.01
theme_override_font_sizes/font_size = 25
text = ">"
horizontal_alignment = 2
[node name="ConsoleInput" type="LineEdit" parent="Control/MarginContainer/VboxContainer/ConsoleInputBox" unique_id=358247719]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
size_flags_stretch_ratio = 2.29
keep_editing_on_text_submit = true
expand_to_text_length = true
flat = true
draw_control_chars = true
caret_blink = true
caret_blink_interval = 0.12
[node name="SuggestionsList" type="ItemList" parent="." unique_id=220304513]
unique_name_in_owner = true
layout_mode = 1
anchors_preset = -1
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
size_flags_stretch_ratio = 2.0
auto_height = true