cleanup hud
This commit is contained in:
parent
9975d8b2bf
commit
54cb36d8cb
19
src/hud.rs
19
src/hud.rs
|
@ -183,7 +183,7 @@ fn setup(
|
|||
}
|
||||
),
|
||||
TextSection::new(
|
||||
"\nAdren水平 ",
|
||||
"\nAdrenaline水平 ",
|
||||
TextStyle {
|
||||
font: asset_server.load(FONT),
|
||||
font_size: settings.font_size_hud,
|
||||
|
@ -200,15 +200,6 @@ fn setup(
|
|||
..default()
|
||||
}
|
||||
),
|
||||
TextSection::new(
|
||||
"\n雌激素水平 172pg/mL",
|
||||
TextStyle {
|
||||
font: asset_server.load(FONT),
|
||||
font_size: settings.font_size_hud,
|
||||
color: Color::GRAY,
|
||||
..default()
|
||||
},
|
||||
),
|
||||
TextSection::new(
|
||||
"\nProximity 警告 ",
|
||||
TextStyle {
|
||||
|
@ -264,7 +255,7 @@ fn setup(
|
|||
}
|
||||
),
|
||||
TextSection::new(
|
||||
"\n\n",
|
||||
"\n☢ HAZARD\n\n",
|
||||
TextStyle {
|
||||
font: asset_server.load(FONT),
|
||||
font_size: settings.font_size_hud,
|
||||
|
@ -415,12 +406,12 @@ fn update(
|
|||
let adrenaline = lifeform.adrenaline * 990.0 + 10.0;
|
||||
text.sections[7].value = format!("{adrenaline:.0}pg/mL");
|
||||
let all_actors = query_all_actors.iter().len();
|
||||
text.sections[10].value = format!("{all_actors:.0}");
|
||||
text.sections[9].value = format!("{all_actors:.0}");
|
||||
let integrity = suit.integrity * 100.0;
|
||||
text.sections[12].value = format!("{integrity:.0}%");
|
||||
text.sections[11].value = format!("{integrity:.0}%");
|
||||
let speed = cam_v.length();
|
||||
let kmh = speed * 60.0 * 60.0 / 1000.0;
|
||||
text.sections[14].value = format!("{speed:.0}m/s | {kmh:.0}km/h");
|
||||
text.sections[13].value = format!("{speed:.0}m/s | {kmh:.0}km/h");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue