From d456dadafa3eb5e55a4f26fa94d382009370ef6c Mon Sep 17 00:00:00 2001 From: rdbtCVS <87152661+rdbtCVS@users.noreply.github.com> Date: Wed, 14 Oct 2026 20:45:33 +0100 Subject: [PATCH] Match vanilla inventory effect duration text color --- crates/horizon-client/src/hud.rs | 1 + crates/horizon-client/src/inventory_effects.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/horizon-client/src/hud.rs b/crates/horizon-client/src/hud.rs index d308046c8..e20da73a4 100644 --- a/crates/horizon-client/src/hud.rs +++ b/crates/horizon-client/src/hud.rs @@ -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"]; diff --git a/crates/horizon-client/src/inventory_effects.rs b/crates/horizon-client/src/inventory_effects.rs index 3a870a1e6..02a533867 100644 --- a/crates/horizon-client/src/inventory_effects.rs +++ b/crates/horizon-client/src/inventory_effects.rs @@ -148,7 +148,7 @@ pub fn paint( &panel.duration, (panel.x + 32) as f32, (panel.y + 16) as f32, - 0xff7f7f7f, + 0xff808080, true, ); }