From 2690f9ae0066d437d26a153427acda7d8b2c3551 Mon Sep 17 00:00:00 2001 From: torhal Date: Mon, 11 May 2009 19:38:47 +0000 Subject: [PATCH] In ttAdd(): Renamed wraptext parameter to use_span and added support for it. This makes the 'usage' text at the bottom of the tooltip span both columns, thereby shrinking the overall tooltip size to what it was before the LibQTip addition. --- ARLFrame.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ARLFrame.lua b/ARLFrame.lua index 9bce1ad..fd96683 100644 --- a/ARLFrame.lua +++ b/ARLFrame.lua @@ -596,7 +596,7 @@ local function ttAdd( leftPad, -- number of times to pad two spaces on left side textSize, -- negative number. subtract from 12 to get fontsize narrow, -- if 1, use ARIALN instead of FRITZQ - wraptext, -- wraptext for AddLine (0 or 1) + use_span, -- will str1 span both columns? str1, -- left hand string hexcolor1, -- hex color code for left hand side str2, -- if present, this is a double line, and this is the right hand string @@ -629,6 +629,9 @@ local function ttAdd( local lineNum = arlTooltip:AddLine(" ") arlTooltip:SetCell(lineNum, 1, "|cff"..hexcolor1..leftStr.."|r") arlTooltip:SetCell(lineNum, 2, "|cff"..hexcolor2..str2.."|r") + elseif use_span then + local lineNum = arlTooltip:AddLine(" ") + arlTooltip:SetCell(lineNum, 1, "|cff"..hexcolor1..leftStr.."|r", "LEFT", 2) else arlTooltip:AddLine("|cff"..hexcolor1..leftStr.."|r") end -- 1.7.9.5