atmosphere: reorder gauges
This commit is contained in:
parent
5f1c15e614
commit
bbbf9c839b
|
@ -877,12 +877,12 @@ fn update_speedometer(
|
||||||
if let Ok(mut speed_text) = q_node_speed.get_single_mut() {
|
if let Ok(mut speed_text) = q_node_speed.get_single_mut() {
|
||||||
// Atmospheric conditions
|
// Atmospheric conditions
|
||||||
let mut atmo = String::new();
|
let mut atmo = String::new();
|
||||||
if let Some(val) = settings.atmo_density {
|
|
||||||
atmo += format!("dens: {}g/m³\n", nature::readable_si(val*1000.0)).as_str();
|
|
||||||
}
|
|
||||||
if let Some(val) = settings.atmo_altitude {
|
if let Some(val) = settings.atmo_altitude {
|
||||||
atmo += format!("alt: {}m\n", nature::readable_si(val)).as_str();
|
atmo += format!("alt: {}m\n", nature::readable_si(val)).as_str();
|
||||||
}
|
}
|
||||||
|
if let Some(val) = settings.atmo_density {
|
||||||
|
atmo += format!("dens: {}g/m³\n", nature::readable_si(val*1000.0)).as_str();
|
||||||
|
}
|
||||||
if let Some(val) = settings.atmo_pressure {
|
if let Some(val) = settings.atmo_pressure {
|
||||||
atmo += format!("p: {}bar\n", nature::readable_si(val as f64)).as_str();
|
atmo += format!("p: {}bar\n", nature::readable_si(val as f64)).as_str();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue