equip-compare: enable wrap text flag for each line

This commit is contained in:
shagu
2025-04-06 15:02:26 +02:00
parent 32643c8f12
commit ba8697dde6
+3 -3
View File
@@ -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