From bbf4f468cdcf1dc2085e5881b18befa5b432ac1e Mon Sep 17 00:00:00 2001 From: hut Date: Thu, 28 Mar 2024 23:09:08 +0100 Subject: [PATCH] add m/s + km/h display --- src/hud.rs | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/src/hud.rs b/src/hud.rs index 64db06a..6e77a35 100644 --- a/src/hud.rs +++ b/src/hud.rs @@ -239,6 +239,24 @@ fn setup( ..default() } ), + TextSection::new( + "\n相对的v ", + 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\n", TextStyle { @@ -352,7 +370,7 @@ fn update( diagnostics: Res, time: Res