Build validated industrial submarine cockpit

This commit is contained in:
chindit committed 2026-10-04 10:39:56 +02:00
1 parent dffe790926
commit fdebbafeae
19 files changed
+906 -277

No files matched your search

@@ -23,18 +23,25 @@ func control_count() -> int:
return _control_count
func apply_screen_materials(dashboard: Node3D) -> void:
for screen_name: String in ["ResourcesScreen", "NavigationScreen", "IntegrityScreen"]:
var screen := dashboard.get_node_or_null(screen_name) as MeshInstance3D
if screen != null:
screen.material_override = _materials.instrument_screen
func hide_placeholder_indicators(cockpit: Node3D) -> void:
func hide_obsolete_elements(cockpit: Node3D) -> void:
for indicator_name: String in ["CyanIndicator", "AmberIndicator", "RedIndicator"]:
var indicator := cockpit.get_node_or_null(indicator_name) as MeshInstance3D
if indicator != null:
indicator.visible = false
for readout_name: String in [
"ResourcesFrame",
"ResourcesScreen",
"ResourcesLabel",
"NavigationFrame",
"NavigationScreen",
"NavigationLabel",
"IntegrityFrame",
"IntegrityScreen",
"IntegrityLabel",
]:
var readout := cockpit.get_node_or_null("Dashboard/%s" % readout_name) as Node3D
if readout != null:
readout.visible = false
func _build_structural_frame() -> void:
@@ -60,14 +67,6 @@ func _build_structural_frame() -> void:
Vector3(0.050, 0.46, 0.055),
_materials.dark_steel
)
for x: float in [-0.238, 0.238]:
CockpitMeshFactory.add_box(
"ScreenSeparator",
self,
Vector3(x, -0.075, 0.118),
Vector3(0.038, 0.16, 0.048),
_materials.brass
)
for screw_position: Vector2 in [
Vector2(-0.72, -0.18),
Vector2(-0.72, 0.23),