mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Change item color in details mode.
This commit is contained in:
parent
6899023fde
commit
908b2a62fa
@ -1,5 +1,5 @@
|
|||||||
use super::{
|
use super::{
|
||||||
cr_color, get_quality_col,
|
cr_color,
|
||||||
img_ids::{Imgs, ImgsRot},
|
img_ids::{Imgs, ImgsRot},
|
||||||
item_imgs::ItemImgs,
|
item_imgs::ItemImgs,
|
||||||
slots::{ArmorSlot, EquipSlot, InventorySlot, SlotManager},
|
slots::{ArmorSlot, EquipSlot, InventorySlot, SlotManager},
|
||||||
@ -467,7 +467,7 @@ impl<'a> InventoryScroller<'a> {
|
|||||||
)
|
)
|
||||||
.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(get_quality_col(item))
|
.color(color::WHITE)
|
||||||
.set(state.ids.inv_slot_names[i], ui);
|
.set(state.ids.inv_slot_names[i], ui);
|
||||||
|
|
||||||
Text::new(&format!("{}", item.amount()))
|
Text::new(&format!("{}", item.amount()))
|
||||||
@ -478,7 +478,7 @@ impl<'a> InventoryScroller<'a> {
|
|||||||
)
|
)
|
||||||
.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(get_quality_col(item))
|
.color(color::WHITE)
|
||||||
.set(state.ids.inv_slot_amounts[i], ui);
|
.set(state.ids.inv_slot_amounts[i], ui);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user