make key bindings look more like the achievement list

This commit is contained in:
yuni 2024-05-14 18:43:38 +02:00
parent 49314bc6bb
commit 122a1e49ec
3 changed files with 6 additions and 4 deletions

View file

@ -1,4 +1,3 @@
Key Bindings:
Space: Slow down, match velocity Space: Slow down, match velocity
E: Interact E: Interact
F: Flashlight F: Flashlight

View file

@ -222,7 +222,7 @@ pub fn setup(
}, },
)).with_children(|builder| { )).with_children(|builder| {
let mut sections = vec![ let mut sections = vec![
TextSection::new("Achievements\n", style_achievement_header) TextSection::new("Achievements\n", style_achievement_header.clone())
]; ];
sections.extend(Vec::from_iter((0..achievement_count).map(|_| sections.extend(Vec::from_iter((0..achievement_count).map(|_|
TextSection::new("", style_achievement.clone()) TextSection::new("", style_achievement.clone())
@ -267,7 +267,10 @@ pub fn setup(
builder.spawn(( builder.spawn((
TextBundle { TextBundle {
text: Text { text: Text {
sections: vec![TextSection::new(keybindings, style_keybindings)], sections: vec![
TextSection::new("Key Bindings\n", style_achievement_header),
TextSection::new(keybindings, style_keybindings)
],
justify: JustifyText::Right, justify: JustifyText::Right,
..default() ..default()
}, },

View file

@ -200,7 +200,7 @@ impl Default for Settings {
hud_color_achievement_header: Color::hex("#BE1251").unwrap(), hud_color_achievement_header: Color::hex("#BE1251").unwrap(),
hud_color_death: Color::hex("#CCCCCC").unwrap(), hud_color_death: Color::hex("#CCCCCC").unwrap(),
hud_color_death_achievements: Color::hex("#CCCCCC").unwrap(), hud_color_death_achievements: Color::hex("#CCCCCC").unwrap(),
hud_color_keybindings: Color::hex("#999999").unwrap(), hud_color_keybindings: Color::hex("#666666").unwrap(),
chat_speed: DEFAULT_CHAT_SPEED * if dev_mode { 2.5 } else { 1.0 }, chat_speed: DEFAULT_CHAT_SPEED * if dev_mode { 2.5 } else { 1.0 },
flashlight_active: false, flashlight_active: false,
hud_active: true, hud_active: true,