Match vanilla inventory effect duration text color

This commit is contained in:
rdbtCVS
2026-10-14 20:45:33 +01:00
parent 2fbbe1c5e2
commit d456dadafa
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -860,6 +860,7 @@ mod tests {
inventory_effects::panels(480, [72, 37], 176, &[effect], 20.0, &|_| None, &|_| 60);
batch.vertices.clear();
assert!(inventory_effects::paint(&mut batch, &atlas, &panels, [0, 0]).is_none());
assert!(batch.vertices.iter().any(|v| v.color == 0xff808080));
assert_eq!(batch.vertices[0].pos, [250.0, 37.0]);
assert_eq!(batch.vertices[1].pos, [254.0, 37.0]);
let background = atlas.sprites["gui/sprites/container/inventory/effect_background"];
@@ -148,7 +148,7 @@ pub fn paint(
&panel.duration,
(panel.x + 32) as f32,
(panel.y + 16) as f32,
0xff7f7f7f,
0xff808080,
true,
);
}