From ba8697dde647a246db3108bcff3db4c36b1b1ef4 Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 6 Apr 2025 15:02:26 +0200 Subject: [PATCH] equip-compare: enable wrap text flag for each line --- mods/equip-compare.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mods/equip-compare.lua b/mods/equip-compare.lua index a3dcfdc..9bf89c1 100644 --- a/mods/equip-compare.lua +++ b/mods/equip-compare.lua @@ -22,16 +22,16 @@ module.enable = function(self) if current and current:IsShown() then local text = current:GetText() - local r, g, b, a = current:GetTextColor() + local r, g, b = current:GetTextColor() if text and text ~= "" then if tooltip:NumLines() < i+1 then -- add new line if required - tooltip:AddLine(text, r, g, b, a) + tooltip:AddLine(text, r, g, b, true) else -- update existing lines below:SetText(text) - below:SetTextColor(r, g, b, a) + below:SetTextColor(r, g, b) below:Show() -- hide processed line