Improve ship lab upgrade selection

This commit is contained in:
Loïc Wisniewski 2026-08-13 16:45:08 +02:00
commit 8219893cda
3 changed files with 208 additions and 29 deletions

136
Main.tscn
View file

@ -953,6 +953,7 @@ icon = 12
glow_color = Color(0.95, 0.55, 0.85, 1)
[node name="VesselLabel" type="Label" parent="UI/LabMenu"]
visible = false
mouse_filter = 2
anchor_right = 1.0
offset_left = 24
@ -963,7 +964,44 @@ theme_override_font_sizes/font_size = 34
horizontal_alignment = 1
text = ""
[node name="VesselALabel" type="Label" parent="UI/LabMenu"]
mouse_filter = 2
anchor_left = 0.5
anchor_right = 0.5
offset_left = -330
offset_right = -130
offset_top = 400
offset_bottom = 460
theme_override_font_sizes/font_size = 22
horizontal_alignment = 1
text = "Interceptor"
[node name="VesselBLabel" type="Label" parent="UI/LabMenu"]
mouse_filter = 2
anchor_left = 0.5
anchor_right = 0.5
offset_left = -100
offset_right = 100
offset_top = 400
offset_bottom = 460
theme_override_font_sizes/font_size = 22
horizontal_alignment = 1
text = "Shield"
[node name="VesselCLabel" type="Label" parent="UI/LabMenu"]
mouse_filter = 2
anchor_left = 0.5
anchor_right = 0.5
offset_left = 130
offset_right = 330
offset_top = 400
offset_bottom = 460
theme_override_font_sizes/font_size = 22
horizontal_alignment = 1
text = "Transporter"
[node name="UpgradeList" type="Label" parent="UI/LabMenu"]
visible = false
mouse_filter = 2
anchor_right = 1.0
anchor_bottom = 1.0
@ -1004,6 +1042,7 @@ horizontal_alignment = 1
text = ""
[node name="NextButton" type="Control" parent="UI/LabMenu"]
visible = false
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
@ -1030,6 +1069,7 @@ icon = 4
glow_color = Color(0.45, 0.9, 0.55, 1)
[node name="HintLabel" type="Label" parent="UI/LabMenu"]
visible = false
mouse_filter = 2
anchor_right = 1.0
anchor_top = 1.0
@ -1043,6 +1083,102 @@ autowrap_mode = 2
horizontal_alignment = 1
text = "Next upgrade Buy"
[node name="Upgrade0" type="Control" parent="UI/LabMenu"]
anchor_left = 0.5
anchor_right = 0.5
offset_left = -240
offset_right = -120
offset_top = 470
offset_bottom = 580
script = ExtResource("10")
icon = 13
glow_color = Color(0.25, 0.85, 1, 1)
[node name="Upgrade0Label" type="Label" parent="UI/LabMenu"]
mouse_filter = 2
anchor_left = 0.5
anchor_right = 0.5
offset_left = -310
offset_right = -50
offset_top = 585
offset_bottom = 655
theme_override_font_sizes/font_size = 22
autowrap_mode = 2
horizontal_alignment = 1
text = ""
[node name="Upgrade1" type="Control" parent="UI/LabMenu"]
anchor_left = 0.5
anchor_right = 0.5
offset_left = 120
offset_right = 240
offset_top = 470
offset_bottom = 580
script = ExtResource("10")
icon = 13
glow_color = Color(0.25, 0.85, 1, 1)
[node name="Upgrade1Label" type="Label" parent="UI/LabMenu"]
mouse_filter = 2
anchor_left = 0.5
anchor_right = 0.5
offset_left = 50
offset_right = 310
offset_top = 585
offset_bottom = 655
theme_override_font_sizes/font_size = 22
autowrap_mode = 2
horizontal_alignment = 1
text = ""
[node name="Upgrade2" type="Control" parent="UI/LabMenu"]
anchor_left = 0.5
anchor_right = 0.5
offset_left = -240
offset_right = -120
offset_top = 660
offset_bottom = 765
script = ExtResource("10")
icon = 13
glow_color = Color(0.25, 0.85, 1, 1)
[node name="Upgrade2Label" type="Label" parent="UI/LabMenu"]
mouse_filter = 2
anchor_left = 0.5
anchor_right = 0.5
offset_left = -310
offset_right = -50
offset_top = 770
offset_bottom = 815
theme_override_font_sizes/font_size = 22
autowrap_mode = 2
horizontal_alignment = 1
text = ""
[node name="Upgrade3" type="Control" parent="UI/LabMenu"]
anchor_left = 0.5
anchor_right = 0.5
offset_left = 120
offset_right = 240
offset_top = 660
offset_bottom = 765
script = ExtResource("10")
icon = 13
glow_color = Color(0.25, 0.85, 1, 1)
[node name="Upgrade3Label" type="Label" parent="UI/LabMenu"]
mouse_filter = 2
anchor_left = 0.5
anchor_right = 0.5
offset_left = 50
offset_right = 310
offset_top = 770
offset_bottom = 815
theme_override_font_sizes/font_size = 22
autowrap_mode = 2
horizontal_alignment = 1
text = ""
[node name="CloseButton" type="Control" parent="UI/LabMenu"]
anchor_left = 1.0
anchor_right = 1.0