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
202 lines
6.7 KiB
Text
202 lines
6.7 KiB
Text
[gd_scene format=3 uid="uid://bsccbqq04umeg"]
|
|
|
|
[ext_resource type="Script" uid="uid://lkb0o8too0mj" path="res://scenes/player/ui_manager_scene.gd" id="1_32d7b"]
|
|
[ext_resource type="Script" uid="uid://cjgwqon6womc5" path="res://scenes/player/console_input.gd" id="2_m6sn8"]
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_m6sn8"]
|
|
bg_color = Color(0.23921569, 0.23921569, 0.23921569, 0.47058824)
|
|
|
|
[node name="PlayerUi" type="Control" unique_id=454848358]
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
offset_transform_enabled = true
|
|
script = ExtResource("1_32d7b")
|
|
|
|
[node name="InvContainer" type="MarginContainer" parent="." unique_id=1895029439]
|
|
layout_mode = 1
|
|
anchors_preset = -1
|
|
anchor_left = 0.3
|
|
anchor_top = 0.87
|
|
anchor_right = 0.7
|
|
anchor_bottom = 0.98
|
|
grow_horizontal = 2
|
|
grow_vertical = 0
|
|
offset_transform_position = Vector2(0.295, 0)
|
|
|
|
[node name="InventoryPanels" type="HBoxContainer" parent="InvContainer" unique_id=786436241]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
offset_transform_position = Vector2(0, -29.25)
|
|
offset_transform_visual_only = false
|
|
alignment = 1
|
|
|
|
[node name="AspectRatioContainer" type="AspectRatioContainer" parent="InvContainer/InventoryPanels" unique_id=1753013707]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
stretch_mode = 1
|
|
|
|
[node name="InvSlot1" type="PanelContainer" parent="InvContainer/InventoryPanels/AspectRatioContainer" unique_id=1847508075]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_styles/panel = SubResource("StyleBoxFlat_m6sn8")
|
|
|
|
[node name="AspectRatioContainer2" type="AspectRatioContainer" parent="InvContainer/InventoryPanels" unique_id=305641278]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
stretch_mode = 1
|
|
|
|
[node name="InvSlot2" type="PanelContainer" parent="InvContainer/InventoryPanels/AspectRatioContainer2" unique_id=2121530771]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_styles/panel = SubResource("StyleBoxFlat_m6sn8")
|
|
|
|
[node name="AspectRatioContainer3" type="AspectRatioContainer" parent="InvContainer/InventoryPanels" unique_id=1408216345]
|
|
visible = false
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
stretch_mode = 1
|
|
|
|
[node name="InvSlot3" type="PanelContainer" parent="InvContainer/InventoryPanels/AspectRatioContainer3" unique_id=1616781961]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_styles/panel = SubResource("StyleBoxFlat_m6sn8")
|
|
|
|
[node name="AspectRatioContainer4" type="AspectRatioContainer" parent="InvContainer/InventoryPanels" unique_id=876478547]
|
|
visible = false
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
stretch_mode = 1
|
|
|
|
[node name="InvSlot4" type="PanelContainer" parent="InvContainer/InventoryPanels/AspectRatioContainer4" unique_id=1782511400]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_styles/panel = SubResource("StyleBoxFlat_m6sn8")
|
|
|
|
[node name="AspectRatioContainer5" type="AspectRatioContainer" parent="InvContainer/InventoryPanels" unique_id=1510462561]
|
|
visible = false
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
stretch_mode = 1
|
|
|
|
[node name="InvSlot5" type="PanelContainer" parent="InvContainer/InventoryPanels/AspectRatioContainer5" unique_id=1512950913]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_styles/panel = SubResource("StyleBoxFlat_m6sn8")
|
|
|
|
[node name="StaminaBarMargin" type="MarginContainer" parent="." unique_id=707986637]
|
|
layout_mode = 1
|
|
anchors_preset = -1
|
|
anchor_left = 0.07
|
|
anchor_top = 0.85
|
|
anchor_right = 0.27
|
|
anchor_bottom = 1.0
|
|
grow_vertical = 0
|
|
size_flags_horizontal = 4
|
|
size_flags_vertical = 4
|
|
theme_override_constants/margin_left = 0
|
|
theme_override_constants/margin_right = 0
|
|
|
|
[node name="StaminaBar" type="ProgressBar" parent="StaminaBarMargin" unique_id=1844702202]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(0, 50)
|
|
layout_mode = 2
|
|
offset_transform_enabled = true
|
|
offset_transform_rotation = -0.34906584
|
|
show_percentage = false
|
|
|
|
[node name="FlashlightBarMargin" type="MarginContainer" parent="." unique_id=915568145]
|
|
layout_mode = 1
|
|
anchors_preset = -1
|
|
anchor_left = 0.73
|
|
anchor_top = 0.85
|
|
anchor_right = 0.93
|
|
anchor_bottom = 1.0
|
|
offset_left = -4.0
|
|
offset_top = -4.0
|
|
grow_horizontal = 0
|
|
grow_vertical = 0
|
|
size_flags_horizontal = 4
|
|
size_flags_vertical = 4
|
|
|
|
[node name="FlashlightBar" type="ProgressBar" parent="FlashlightBarMargin" unique_id=551784534]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(50, 50)
|
|
layout_mode = 2
|
|
offset_transform_enabled = true
|
|
offset_transform_rotation = 0.34906584
|
|
fill_mode = 1
|
|
show_percentage = false
|
|
|
|
[node name="ConsoleContainer" type="PanelContainer" parent="." unique_id=1697520773]
|
|
unique_name_in_owner = true
|
|
layout_mode = 1
|
|
anchors_preset = -1
|
|
anchor_left = 0.3
|
|
anchor_top = 0.05
|
|
anchor_right = 0.7
|
|
anchor_bottom = 0.05
|
|
offset_left = -34.25
|
|
offset_right = 34.25
|
|
offset_bottom = 400.0
|
|
grow_horizontal = 2
|
|
offset_transform_enabled = true
|
|
offset_transform_position_ratio = Vector2(0, -3)
|
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="ConsoleContainer" unique_id=179894258]
|
|
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="ConsoleContainer/MarginContainer" unique_id=283620690]
|
|
layout_mode = 2
|
|
|
|
[node name="SuggestionsList" type="ItemList" parent="ConsoleContainer/MarginContainer/VboxContainer" unique_id=1321789715]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
size_flags_stretch_ratio = 2.0
|
|
|
|
[node name="ConsoleInputBox" type="HBoxContainer" parent="ConsoleContainer/MarginContainer/VboxContainer" unique_id=1910471159]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
size_flags_stretch_ratio = 0.5
|
|
|
|
[node name="Label" type="Label" parent="ConsoleContainer/MarginContainer/VboxContainer/ConsoleInputBox" unique_id=1508142291]
|
|
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="ConsoleContainer/MarginContainer/VboxContainer/ConsoleInputBox" unique_id=1359456780]
|
|
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
|
|
script = ExtResource("2_m6sn8")
|
|
|
|
[node name="CommandLog" type="RichTextLabel" parent="ConsoleContainer/MarginContainer/VboxContainer" unique_id=2092088894]
|
|
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
|