From cd061aba850d85ee1ac8972c907fd3cd6eb864b1 Mon Sep 17 00:00:00 2001 From: timokoesters Date: Tue, 27 Aug 2019 14:42:53 +0200 Subject: [PATCH] Make respawn hint text base on key bindings --- voxygen/src/hud/skillbar.rs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/voxygen/src/hud/skillbar.rs b/voxygen/src/hud/skillbar.rs index 273af66488..b947de8c6d 100644 --- a/voxygen/src/hud/skillbar.rs +++ b/voxygen/src/hud/skillbar.rs @@ -217,11 +217,14 @@ impl<'a> Widget for Skillbar<'a> { .font_size(40) .color(CRITICAL_HP_COLOR) .set(state.ids.death_message_1, ui); - Text::new("Press L-Mouse to respawn.") - .mid_bottom_with_margin_on(state.ids.death_message_1, -30.0) - .font_size(15) - .color(CRITICAL_HP_COLOR) - .set(state.ids.death_message_2, ui); + Text::new(&format!( + "Press {:?} to respawn.", + self.global_state.settings.controls.respawn + )) + .mid_bottom_with_margin_on(state.ids.death_message_1, -30.0) + .font_size(15) + .color(CRITICAL_HP_COLOR) + .set(state.ids.death_message_2, ui); } // Experience-Bar match self.global_state.settings.gameplay.xp_bar {