#110: a dev-mode button that puts a wave on the board now

Waves are on a fifty-second clock, which makes anything that happens during
one - the alert, the pathing, buildings taking damage, an outpost garrison
earning its keep - slow to look at even once.

It skips the warning as well as the peace: the point of the button is to see
the wave, and waiting out a nine-second alert every time would make it
useless as a tool. Gated on dev mode, the same gate the main menu already
uses for the map editor, so it does not exist in a shipped build.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Loïc Wisniewski 2026-08-23 21:58:58 +02:00
commit f9ed46746d
3 changed files with 388 additions and 0 deletions

View file

@ -26,6 +26,9 @@
[ext_resource type="Script" path="res://ui/PlanningPanel.gd" id="35"]
[ext_resource type="Script" path="res://ui/NarrationBanner.gd" id="36"]
[ext_resource type="Script" path="res://world/IntroDirector.gd" id="37"]
[ext_resource type="Script" path="res://ui/DevWaveButton.gd" id="38"]
[ext_resource type="Script" path="res://ui/HangarMenuPanel.gd" id="39"]
[ext_resource type="Script" path="res://logistics/RepairDroneField.gd" id="40"]
[ext_resource type="Script" path="res://logistics/TransporterField.gd" id="23"]
[ext_resource type="Script" path="res://ui/ResourceBar.gd" id="24"]
[ext_resource type="Script" path="res://logistics/VesselDeliveryField.gd" id="26"]
@ -103,6 +106,9 @@ script = ExtResource("34")
[node name="TransporterField" type="Node2D" parent="."]
script = ExtResource("23")
[node name="RepairDroneField" type="Node2D" parent="."]
script = ExtResource("40")
[node name="VesselDeliveryField" type="Node2D" parent="."]
script = ExtResource("26")
@ -219,6 +225,24 @@ offset_bottom = 172
script = ExtResource("10")
icon = 0
[node name="DevWaveButton" type="Control" parent="UI"]
visible = false
mouse_filter = 2
anchor_left = 1.0
anchor_right = 1.0
offset_left = -140.0
offset_right = -24.0
offset_top = 268.0
offset_bottom = 384.0
script = ExtResource("38")
[node name="Button" type="Control" parent="UI/DevWaveButton"]
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource("10")
icon = 5
glow_color = Color(1, 0.45, 0.2, 1)
[node name="NarrationBanner" type="Control" parent="UI"]
visible = false
mouse_filter = 2
@ -824,6 +848,48 @@ script = ExtResource("19")
amount = 70
digit_height = 40.0
[node name="WorkshopButton" type="Control" parent="UI/BuildMenu"]
anchor_left = 0.5
anchor_right = 0.5
anchor_top = 0.5
anchor_bottom = 0.5
offset_left = -64
offset_right = 64
offset_top = 1350
offset_bottom = 1478
script = ExtResource("10")
icon = 42
glow_color = Color(0.5, 0.95, 0.8, 1)
[node name="WorkshopLabel" type="Label" parent="UI/BuildMenu"]
mouse_filter = 2
anchor_left = 0.5
anchor_right = 0.5
anchor_top = 0.5
anchor_bottom = 0.5
offset_left = -150
offset_right = 150
offset_top = 1484
offset_bottom = 1550
theme_override_font_sizes/font_size = 32
autowrap_mode = 2
text = "Spacial Workshop"
horizontal_alignment = 1
[node name="WorkshopCost" type="Control" parent="UI/BuildMenu"]
mouse_filter = 2
anchor_left = 0.5
anchor_right = 0.5
anchor_top = 0.5
anchor_bottom = 0.5
offset_left = -60
offset_right = 60
offset_top = 1554
offset_bottom = 1606
script = ExtResource("19")
amount = 55
digit_height = 40.0
[node name="CloseButton" type="Control" parent="UI/BuildMenu"]
anchor_left = 1.0
anchor_right = 1.0
@ -926,6 +992,7 @@ visible = false
mouse_filter = 2
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource("39")
[node name="Backdrop" type="ColorRect" parent="UI/HangarMenu"]
anchor_right = 1.0
@ -1411,6 +1478,17 @@ script = ExtResource("10")
icon = 37
glow_color = Color(0.7, 0.3, 1, 1)
[node name="VesselH" type="Control" parent="UI/LabMenu"]
anchor_left = 0.5
anchor_right = 0.5
offset_left = 320
offset_right = 380
offset_top = 300
offset_bottom = 420
script = ExtResource("10")
icon = 43
glow_color = Color(0.5, 0.95, 0.8, 1)
[node name="VesselLabel" type="Label" parent="UI/LabMenu"]
visible = false
mouse_filter = 2
@ -1514,6 +1592,19 @@ autowrap_mode = 2
horizontal_alignment = 1
text = "Distorder"
[node name="VesselHLabel" type="Label" parent="UI/LabMenu"]
mouse_filter = 2
anchor_left = 0.5
anchor_right = 0.5
offset_left = 310
offset_right = 390
offset_top = 424
offset_bottom = 496
theme_override_font_sizes/font_size = 15
autowrap_mode = 2
horizontal_alignment = 1
text = "Repair Drone"
[node name="VesselUpgradeSeparator" type="ColorRect" parent="UI/LabMenu"]
mouse_filter = 2
anchor_right = 1.0