Turn dev mode into sandbox menu

This commit is contained in:
Loïc Wisniewski 2026-09-03 20:05:33 +02:00
commit c325501999
19 changed files with 651 additions and 54 deletions

View file

@ -63,6 +63,9 @@ enum Icon {
QUEST,
# #179: a fleet-wide thrust burst, distinct from the Propulser vessel icon.
DASH,
# Development tools: three sliders, used only by the editor-only sandbox
# button. Appended to preserve every serialized icon number above.
DEV_TOOLS,
}
# Size the glyphs were originally drawn against. Every glyph dimension is
@ -323,6 +326,23 @@ func _draw() -> void:
_draw_quest_icon(center, pulse, s)
Icon.DASH:
_draw_dash_icon(center, pulse, s)
Icon.DEV_TOOLS:
_draw_dev_tools_icon(center, pulse, s)
func _draw_dev_tools_icon(center: Vector2, pulse: float, s: float) -> void:
# A compact bank of adjustment sliders. It reads as configuration rather
# than as the old BUILD glyph, which made the wave shortcut look like a
# second construction button.
for row in range(3):
var y: float = (-9.0 + float(row) * 9.0) * s
var left: Vector2 = center + Vector2(-13.0 * s, y)
var right: Vector2 = center + Vector2(13.0 * s, y)
NeonDraw.draw_glowing_line(self, left, right, _active_color(), pulse,
0.45 * s, core_color)
var knob_x: float = [-5.0, 7.0, -1.0][row] * s
NeonDraw.draw_glowing_circle(self, center + Vector2(knob_x, y),
2.7 * s, _active_color(), pulse, core_color)
func _draw_dash_icon(center: Vector2, pulse: float, s: float) -> void: