From 70c345eee9b54b450d04a5f6188b3bf43ebd18c3 Mon Sep 17 00:00:00 2001 From: Joshua Barretto Date: Tue, 20 Apr 2021 15:23:52 +0100 Subject: [PATCH] Made crafting UI check exact crafting sprite --- voxygen/src/hud/crafting.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/voxygen/src/hud/crafting.rs b/voxygen/src/hud/crafting.rs index 057e5141d0..ee616e822d 100644 --- a/voxygen/src/hud/crafting.rs +++ b/voxygen/src/hud/crafting.rs @@ -702,11 +702,13 @@ impl<'a> Widget for Crafting<'a> { .right_from(state.ids.req_station_img, 10.0) .font_id(self.fonts.cyri.conrod_id) .font_size(self.fonts.cyri.scale(14)) - .color(if self.show.craft_sprite.is_some() { - TEXT_COLOR - } else { - TEXT_DULL_RED_COLOR - }) + .color( + if self.show.craft_sprite.map(|(_, s)| s) == recipe.craft_sprite { + TEXT_COLOR + } else { + TEXT_DULL_RED_COLOR + }, + ) .set(state.ids.req_station_txt, ui); } // Ingredients Text