add mystery gauge

This commit is contained in:
yuni 2024-03-20 02:23:29 +01:00
parent 204c5c160c
commit da2bd35c99

View file

@ -188,6 +188,15 @@ fn setup(
..default() ..default()
} }
), ),
TextSection::new(
"\n雌激素水平 172pg/mL",
TextStyle {
font: asset_server.load(FONT),
font_size: settings.font_size_hud,
color: Color::GRAY,
..default()
},
),
TextSection::new( TextSection::new(
"\nProximity 警告 ", "\nProximity 警告 ",
TextStyle { TextStyle {
@ -324,7 +333,7 @@ fn update(
let adrenaline = lifeform.adrenaline * 990.0 + 10.0; let adrenaline = lifeform.adrenaline * 990.0 + 10.0;
text.sections[7].value = format!("{adrenaline:.0}pg/mL"); text.sections[7].value = format!("{adrenaline:.0}pg/mL");
let all_actors = query_all_actors.iter().len(); let all_actors = query_all_actors.iter().len();
text.sections[9].value = format!("{all_actors:.0}"); text.sections[10].value = format!("{all_actors:.0}");
} }
} }