From 96ffda2458de9ea091033003bbd3a38b0e0c6a82 Mon Sep 17 00:00:00 2001 From: Pfauenauge90 <44173739+Pfauenauge90@users.noreply.github.com> Date: Sun, 7 Jul 2019 02:27:38 +0200 Subject: [PATCH] fix --- voxygen/src/hud/mod.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/voxygen/src/hud/mod.rs b/voxygen/src/hud/mod.rs index 2ddf3aebb4..3002281939 100644 --- a/voxygen/src/hud/mod.rs +++ b/voxygen/src/hud/mod.rs @@ -260,7 +260,6 @@ pub struct Hud { fonts: Fonts, new_messages: VecDeque, inventory_space: usize, - crosshair_transp: f32, show: Show, to_focus: Option>, force_ungrab: bool, @@ -287,7 +286,6 @@ impl Hud { ids, new_messages: VecDeque::new(), inventory_space: 8, - crosshair_transp: 0.6, show: Show { help: false, debug: true, @@ -344,11 +342,15 @@ impl Hud { let mut health_back_id_walker = self.ids.health_bar_backs.walk(); // Crosshair - let crosshair_transp = self.crosshair_transp; Image::new(self.imgs.crosshair_outer) .w_h(21.0 * 1.5, 21.0 * 1.5) .middle_of(ui_widgets.window) - .color(Some(Color::Rgba(1.0, 1.0, 1.0, self.crosshair_transp))) + .color(Some(Color::Rgba( + 1.0, + 1.0, + 1.0, + global_state.settings.gameplay.crosshair_transp, + ))) .set(self.ids.crosshair_outer, ui_widgets); Image::new(self.imgs.crosshair_inner) .w_h(21.0 * 2.0, 21.0 * 2.0)