Added research display to the game

This commit is contained in:
2026-05-06 21:10:04 +02:00
parent a9475aaaf9
commit ce99936298
31 changed files with 414 additions and 52 deletions
+14
View File
@@ -15,6 +15,7 @@
[ext_resource type="Texture2D" uid="uid://ban872p4eh4gi" path="res://Assets/Images/RobotSymbol.png" id="11_dahhg"]
[ext_resource type="Texture2D" uid="uid://ciehcg34et0q3" path="res://Assets/Images/InventorySymbol.png" id="11_wxwew"]
[ext_resource type="Texture2D" uid="uid://b77mo4fhklnja" path="res://Assets/Images/OptionsSymbol.png" id="12_3so38"]
[ext_resource type="Script" uid="uid://drscsrkfphpy7" path="res://Scripts/Research/ResearchList.cs" id="12_4q8tf"]
[ext_resource type="Texture2D" uid="uid://dt84awx33mulb" path="res://Assets/Images/ResearchSymbol.png" id="13_alh3a"]
[sub_resource type="CompressedTexture2D" id="CompressedTexture2D_u44n3"]
@@ -395,6 +396,19 @@ size_flags_horizontal = 3
size_flags_vertical = 3
theme_override_constants/separation = 10
[node name="Research" type="PanelContainer" parent="CanvasLayer/UIHandler/MainUI/Content" unique_id=1416471893 node_paths=PackedStringArray("researchGraph")]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("12_4q8tf")
researchGraph = NodePath("ResearchGraph")
[node name="ResearchGraph" type="GraphEdit" parent="CanvasLayer/UIHandler/MainUI/Content/Research" unique_id=414756119]
layout_mode = 2
[node name="FooterContainer" type="PanelContainer" parent="CanvasLayer/UIHandler/MainUI" unique_id=1495029884]
layout_mode = 2
+44 -44
View File
@@ -35,6 +35,50 @@ grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_tt5f1")
[node name="Decoration" type="Control" parent="." unique_id=252748481]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="TextureRect" type="TextureRect" parent="Decoration" unique_id=175718935]
layout_mode = 0
offset_left = 19.0
offset_top = 960.0
offset_right = 51.0
offset_bottom = 992.0
scale = Vector2(3, 3)
texture = ExtResource("2_853f1")
[node name="TextureRect2" type="TextureRect" parent="Decoration" unique_id=1274351412]
layout_mode = 0
offset_left = 1730.0001
offset_top = 51.0
offset_right = 1770.0001
offset_bottom = 91.0
scale = Vector2(3, 3)
texture = ExtResource("3_df05h")
[node name="TextureRect3" type="TextureRect" parent="Decoration" unique_id=1496393482]
layout_mode = 0
offset_left = 517.0
offset_top = 264.0
offset_right = 557.0
offset_bottom = 304.0
scale = Vector2(3, 3)
texture = ExtResource("4_8um5k")
[node name="TextureRect4" type="TextureRect" parent="Decoration" unique_id=606748204]
layout_mode = 0
offset_left = 1443.0
offset_top = 538.0
offset_right = 1483.0
offset_bottom = 578.0
scale = Vector2(3, 3)
texture = ExtResource("5_xim88")
[node name="Panel" type="Panel" parent="." unique_id=167014122]
layout_mode = 1
anchors_preset = 15
@@ -91,49 +135,5 @@ theme_override_styles/normal = SubResource("StyleBoxFlat_bnhvo")
theme_override_styles/hover = SubResource("StyleBoxFlat_tt5f1")
text = "Exit Game"
[node name="Decoration" type="Control" parent="." unique_id=252748481]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="TextureRect" type="TextureRect" parent="Decoration" unique_id=175718935]
layout_mode = 0
offset_left = 19.0
offset_top = 960.0
offset_right = 51.0
offset_bottom = 992.0
scale = Vector2(3, 3)
texture = ExtResource("2_853f1")
[node name="TextureRect2" type="TextureRect" parent="Decoration" unique_id=1274351412]
layout_mode = 0
offset_left = 1730.0001
offset_top = 51.0
offset_right = 1770.0001
offset_bottom = 91.0
scale = Vector2(3, 3)
texture = ExtResource("3_df05h")
[node name="TextureRect3" type="TextureRect" parent="Decoration" unique_id=1496393482]
layout_mode = 0
offset_left = 517.0
offset_top = 264.0
offset_right = 557.0
offset_bottom = 304.0
scale = Vector2(3, 3)
texture = ExtResource("4_8um5k")
[node name="TextureRect4" type="TextureRect" parent="Decoration" unique_id=606748204]
layout_mode = 0
offset_left = 1443.0
offset_top = 538.0
offset_right = 1483.0
offset_bottom = 578.0
scale = Vector2(3, 3)
texture = ExtResource("5_xim88")
[connection signal="button_up" from="CenterContainer/VBoxContainer/btnPlay" to="." method="OnPlayPressed"]
[connection signal="button_up" from="CenterContainer/VBoxContainer/btnExit" to="." method="OnQuitPressed"]