From 3ed8a9b8b0ef57b7b5584025cf2e2ed2f2a1dd5c Mon Sep 17 00:00:00 2001 From: hut Date: Mon, 8 Apr 2024 04:16:01 +0200 Subject: [PATCH] smaller FoV when zooming --- src/hud.rs | 157 +++++++++++------------------------------------- src/settings.rs | 2 +- 2 files changed, 37 insertions(+), 122 deletions(-) diff --git a/src/hud.rs b/src/hud.rs index a7f4cd0..10ef84f 100644 --- a/src/hud.rs +++ b/src/hud.rs @@ -151,7 +151,16 @@ fn setup( }; let mut bundle_fps = TextBundle::from_sections([ TextSection::new( - "OutFly Augmented Reality 电量 ", + "", + TextStyle { + font: asset_server.load(FONT), + font_size: settings.font_size_hud, + color: Color::GRAY, + ..default() + } + ), + TextSection::new( + " ⚡ ", TextStyle { font: asset_server.load(FONT), font_size: settings.font_size_hud, @@ -169,7 +178,7 @@ fn setup( } ), TextSection::new( - " 时 ", + " ☣ ", TextStyle { font: asset_server.load(FONT), font_size: settings.font_size_hud, @@ -186,33 +195,6 @@ fn setup( ..default() } ), - TextSection::new( - " 帧率 ", - TextStyle { - font: asset_server.load(FONT), - font_size: settings.font_size_hud, - color: Color::GRAY, - ..default() - }, - ), - TextSection::new( - "", - TextStyle { - font: asset_server.load(FONT), - font_size: settings.font_size_hud, - color: Color::GRAY, - ..default() - } - ), - TextSection::new( - "\n木星中心 ", - TextStyle { - font: asset_server.load(FONT), - font_size: settings.font_size_hud, - color: Color::GRAY, - ..default() - }, - ), TextSection::new( "", TextStyle { @@ -240,42 +222,6 @@ fn setup( ..default() } ), - TextSection::new( - "\nAdrenaline水平 ", - TextStyle { - font: asset_server.load(FONT), - font_size: settings.font_size_hud, - color: Color::GRAY, - ..default() - }, - ), - TextSection::new( - "", - TextStyle { - font: asset_server.load(FONT), - font_size: settings.font_size_hud, - color: Color::GRAY, - ..default() - } - ), - TextSection::new( - "\nVitals ", - TextStyle { - font: asset_server.load(FONT), - font_size: settings.font_size_hud, - color: Color::GRAY, - ..default() - }, - ), - TextSection::new( - "", - TextStyle { - font: asset_server.load(FONT), - font_size: settings.font_size_hud, - color: Color::GRAY, - ..default() - } - ), TextSection::new( "\nProximity 警告 ", TextStyle { @@ -313,7 +259,7 @@ fn setup( } ), TextSection::new( - "\n相对的v ", + "\nVitals ", TextStyle { font: asset_server.load(FONT), font_size: settings.font_size_hud, @@ -330,16 +276,7 @@ fn setup( ..default() } ), - TextSection::new( - "\nTarget: ", - TextStyle { - font: asset_server.load(FONT), - font_size: settings.font_size_hud, - color: Color::GRAY, - ..default() - }, - ), - TextSection::new( + TextSection::new( // Target "", TextStyle { font: asset_server.load(FONT), @@ -348,23 +285,6 @@ fn setup( ..default() } ), - TextSection::new( - "\n☢ HAZARD\n\n", - TextStyle { - font: asset_server.load(FONT), - font_size: settings.font_size_hud, - color: Color::GRAY, - ..default() - } - ), - TextSection::from_style( - TextStyle { - font: asset_server.load(FONT), - font_size: settings.font_size_hud, - color: Color::GRAY, - ..default() - } - ), ]).with_style(Style { top: Val::VMin(2.0), left: Val::VMin(3.0), @@ -473,7 +393,7 @@ fn update_hud( diagnostics: Res, time: Res