mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Made crafting UI check exact crafting sprite
This commit is contained in:
@ -702,11 +702,13 @@ impl<'a> Widget for Crafting<'a> {
|
|||||||
.right_from(state.ids.req_station_img, 10.0)
|
.right_from(state.ids.req_station_img, 10.0)
|
||||||
.font_id(self.fonts.cyri.conrod_id)
|
.font_id(self.fonts.cyri.conrod_id)
|
||||||
.font_size(self.fonts.cyri.scale(14))
|
.font_size(self.fonts.cyri.scale(14))
|
||||||
.color(if self.show.craft_sprite.is_some() {
|
.color(
|
||||||
TEXT_COLOR
|
if self.show.craft_sprite.map(|(_, s)| s) == recipe.craft_sprite {
|
||||||
} else {
|
TEXT_COLOR
|
||||||
TEXT_DULL_RED_COLOR
|
} else {
|
||||||
})
|
TEXT_DULL_RED_COLOR
|
||||||
|
},
|
||||||
|
)
|
||||||
.set(state.ids.req_station_txt, ui);
|
.set(state.ids.req_station_txt, ui);
|
||||||
}
|
}
|
||||||
// Ingredients Text
|
// Ingredients Text
|
||||||
|
Reference in New Issue
Block a user