class_name CockpitDashboardDetailing extends Node3D ## The dashboard keeps its hidden digital readouts (their labels still carry the ## exact values); this hides the placeholder parts the gauge panel replaced. func _init() -> void: name = "DashboardDetailing" 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