mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Overflwo slots now appear as red in the inventory.
This commit is contained in:
parent
e925664d36
commit
b87d1b649d
@ -430,6 +430,11 @@ impl<'a> InventoryScroller<'a> {
|
|||||||
slot_widget = slot_widget.with_background_color(Color::Rgba(1.0, 1.0, 1.0, 1.0));
|
slot_widget = slot_widget.with_background_color(Color::Rgba(1.0, 1.0, 1.0, 1.0));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Highlight in red slots that are overflow
|
||||||
|
if matches!(pos, Slot::Overflow(_)) {
|
||||||
|
slot_widget = slot_widget.with_background_color(Color::Rgba(1.0, 0.0, 0.0, 1.0));
|
||||||
|
}
|
||||||
|
|
||||||
if let Some(item) = item {
|
if let Some(item) = item {
|
||||||
let quality_col_img = match item.quality() {
|
let quality_col_img = match item.quality() {
|
||||||
Quality::Low => self.imgs.inv_slot_grey,
|
Quality::Low => self.imgs.inv_slot_grey,
|
||||||
|
Loading…
Reference in New Issue
Block a user