From 45701d14d6c718a2e74764e650204a95023a96c4 Mon Sep 17 00:00:00 2001 From: GWToolbox Bot Date: Thu, 18 Jun 2026 10:01:26 +0000 Subject: [PATCH] fix(damage): don't render zero damage/heal on party monitor A party member who has dealt no damage (or done no healing) showed a bare "0" on each row of the Damage widget, which is just visual noise. Skip the number text when the value is zero. Co-Authored-By: Claude Opus 4.8 (1M context) --- GWToolboxdll/Widgets/PartyDamage.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GWToolboxdll/Widgets/PartyDamage.cpp b/GWToolboxdll/Widgets/PartyDamage.cpp index 85b8d90f4..2e19aa795 100644 --- a/GWToolboxdll/Widgets/PartyDamage.cpp +++ b/GWToolboxdll/Widgets/PartyDamage.cpp @@ -684,7 +684,7 @@ void PartyDamage::Draw(IDirect3DDevice9*) const auto text_height = ImGui::GetTextLineHeight(); const auto text_y = damage_top_left.y + (row_height - text_height) / 2; - if (settings.show_damage) { + if (settings.show_damage && entry->damage > 0) { // Damage text if (damage_float < 1000.f) { snprintf(buffer, buffer_size, "%.0f", damage_float); @@ -709,7 +709,7 @@ void PartyDamage::Draw(IDirect3DDevice9*) } } - if (settings.show_healing) { + if (settings.show_healing && entry->healing > 0) { // Healing text const float healing_float = static_cast(entry->healing); if (healing_float < 1000.f) {