diff --git a/src/hud.rs b/src/hud.rs index 54a2340..cc75117 100644 --- a/src/hud.rs +++ b/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() } diff --git a/src/settings.rs b/src/settings.rs index 9a7f5f1..b219f26 100644 --- a/src/settings.rs +++ b/src/settings.rs @@ -18,7 +18,7 @@ impl Default for Settings { volume_sfx: 100, volume_music: 100, key_togglehud: KeyCode::Tab, - ar_active: false, + ar_active: true, } } }