Overflwo slots now appear as red in the inventory.

This commit is contained in:
Sam 2023-11-11 13:41:20 -05:00
parent e925664d36
commit b87d1b649d

View File

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