Make respawn hint text base on key bindings

This commit is contained in:
timokoesters 2019-08-27 14:42:53 +02:00
parent 6b4dfcc533
commit cd061aba85
No known key found for this signature in database
GPG Key ID: CD80BE9AAEE78097

View File

@ -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 {