switch to NotoSansSC-Thin font
This commit is contained in:
parent
2e4dbe4844
commit
af4235c756
11
src/hud.rs
11
src/hud.rs
|
@ -11,6 +11,9 @@ impl Plugin for OutFlyHudPlugin {
|
|||
}
|
||||
}
|
||||
|
||||
const FONT: &str = "tmp/fonts/NotoSansSC-Thin.ttf";
|
||||
const FONT_SIZE: f32 = 50.0;
|
||||
|
||||
#[derive(Component)]
|
||||
struct FpsText;
|
||||
|
||||
|
@ -31,8 +34,8 @@ fn setup(
|
|||
TextSection::new(
|
||||
"帧率 ",
|
||||
TextStyle {
|
||||
font: asset_server.load("tmp/fonts/ZCOOLQingKeHuangYou-Regular.ttf"),
|
||||
font_size: 50.0,
|
||||
font: asset_server.load(FONT),
|
||||
font_size: FONT_SIZE,
|
||||
color: Color::GRAY,
|
||||
..default()
|
||||
},
|
||||
|
@ -40,8 +43,8 @@ fn setup(
|
|||
TextSection::new(
|
||||
"",
|
||||
TextStyle {
|
||||
font: asset_server.load("tmp/fonts/ZCOOLQingKeHuangYou-Regular.ttf"),
|
||||
font_size: 50.0,
|
||||
font: asset_server.load(FONT),
|
||||
font_size: FONT_SIZE,
|
||||
color: Color::GRAY,
|
||||
..default()
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ impl Default for Settings {
|
|||
volume_sfx: 100,
|
||||
volume_music: 100,
|
||||
key_togglehud: KeyCode::Tab,
|
||||
ar_active: false,
|
||||
ar_active: true,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue