My skin has an extra bit of background below the torrent's. See image.

I have tried adjusting the "BackgroundHeight=230" variable to lower numbers, but this has not resolved the problem. It did this in both iterations I got to work. Thoughts?
Open up the .lua file in the folder and above the line:handsforfeet wrote:I do have a question though.
My skin has an extra bit of background below the torrent's. See image.
I have tried adjusting the "BackgroundHeight=230" variable to lower numbers, but this has not resolved the problem. It did this in both iterations I got to work. Thoughts?
Code: Select all
iItemCount = (iItemCount < 6) and iItemCount or 5
for i = 1, iItemCount do
Code: Select all
function Initialize()
tItem = {}
tNumber = {}
tHASH = {}
tSTATUS = {}
tNAME = {}
tSIZE = {}
tPERCENTPROGRESS = {}
tDOWNLOADED = {}
tUPLOADED = {}
tRATIO = {}
tUPLOADSPEED = {}
tDOWNLOADSPEED = {}
tETA = {}
tLABEL = {}
tPEERSCONNECTED = {}
tPEERSINSWARM = {}
tSEEDSCONNECTED = {}
tSEEDSINSWARM = {}
tAVAILABILITY = {}
tTORRENTQUEUEORDER = {}
tREMAINING = {}
tField21 = {}
tField22 = {}
tTEXTSTATUS = {}
tField24 = {}
tField25 = {}
tField26 = {}
tField27 = {}
tSAVEFOLDER = {}
sNormalColor = SKIN:GetVariable("ListFontColor")
sGreyColor = SKIN:GetVariable("GreyColor")
RunningState = SKIN:GetMeasure("MeasureProcess")
msMain = SKIN:GetMeasure("MeasureWebUI")
CurrDir = SKIN:GetVariable("CURRENTPATH")
end -- function Initialize
function Update()
IsRunning = RunningState:GetValue()
if IsRunning == 1 then --uTorrent running
Pos = 0
sAllText = msMain:GetStringValue()
sAllText = string.match(sAllText, ".-\034torrents\034%:(.-)$")
sTemp, iItemCount = string.gsub(sAllText, ".-%[\"(.-)\"%]", "")
iItemCount = (iItemCount < 6) and iItemCount or 5
for i = 1, iItemCount do
tItem[i] = "[\""..string.match(sAllText, ".-%[\"(.-)\"%]", Pos).."\"]"
Pos = Pos + string.len(tItem[i])+1
tHASH[i], tSTATUS[i], tNAME[i], tSIZE[i], tPERCENTPROGRESS[i], tDOWNLOADED[i], tUPLOADED[i], tRATIO[i], tUPLOADSPEED[i], tDOWNLOADSPEED[i], tETA[i], tLABEL[i], tPEERSCONNECTED[i], tPEERSINSWARM[i], tSEEDSCONNECTED[i], tSEEDSINSWARM[i], tAVAILABILITY[i], tTORRENTQUEUEORDER[i], tREMAINING[i], tField21[i], tField22[i], tTEXTSTATUS[i], tField24[i], tField25[i], tField26[i], tField27[i], tSAVEFOLDER[i] = string.match(tItem[i], '%[\"(.-)\",(.-),\"(.-)\",(.-),(.-),(.-),(.-),(.-),(.-),(.-),(.-),\"(.-)\",(.-),(.-),(.-),(.-),(.-),(.-),(.-),\"(.-)\",\"(.-)\",\"(.-)\",\"(.-)\",(.-),(.-),\"(.-)\",\"(.-)\".-%]')
tNumber[i] = i
tTEXTSTATUS[i] = string.gsub(tTEXTSTATUS[i], "Downloading", "Download")
tSAVEFOLDER[i] = string.gsub(tSAVEFOLDER[i], "\092\092", "\092")
SKIN:Bang("!ShowMeterGroup Torrent"..i)
SKIN:Bang("!SetOption Meter"..i.."Name Text \""..tNAME[i].."\"")
SKIN:Bang("!SetOption Meter"..i.."Name ToolTipText \""..tNAME[i].."#CRLF#"..tSAVEFOLDER[i].."\092#CRLF#Peers: "..tPEERSCONNECTED[i].."("..tPEERSINSWARM[i]..")#CRLF#Downloaded: "..round(tonumber(tDOWNLOADED[i]/1048576),0).." Mb".."#CRLF#Remaining: "..round(tonumber(tREMAINING[i]/1048576),0).." Mb#CRLF#Ratio: "..round(tonumber(tRATIO[i]/1000),3).."\"")
SKIN:Bang("!SetOption Meter"..i.."Size Text \""..round(tonumber(tSIZE[i]/1048576),0).." Mb\"")
SKIN:Bang("!SetVariable Bar"..i.."Calc \""..math.floor(tonumber(tPERCENTPROGRESS[i]/10)).."\"")
SKIN:Bang("!SetOption Meter"..i.."\% Text \""..math.floor(tonumber(tPERCENTPROGRESS[i]/10)).." \%\"")
if round(tonumber(tDOWNLOADSPEED[i]/1024),0) <= 0 then
SKIN:Bang("!SetOption Meter"..i.."DLSpeed FontColor \""..sGreyColor.."\"")
else
SKIN:Bang("!SetOption Meter"..i.."DLSpeed FontColor \""..sNormalColor.."\"")
end
SKIN:Bang("!SetOption Meter"..i.."DLSpeed Text \""..round(tonumber(tDOWNLOADSPEED[i]/1024),0).." k/Bs\"")
SKIN:Bang("!SetOption Meter"..i.."Seeds Text \""..tSEEDSCONNECTED[i].."("..tSEEDSINSWARM[i]..")\"")
SKIN:Bang("!SetOption Meter"..i.."Status Text \""..tTEXTSTATUS[i].."\"")
end -- for iItemCount
SKIN:Bang("!EnableMeasureGroup AllMeasures")
if iItemCount == 0 then
SKIN:Bang("!HideMeterGroup Body")
else
SKIN:Bang("!ShowMeterGroup Body")
end
SKIN:Bang("!SetVariable BackgroundHeight "..tostring(iItemCount * 31))
if iItemCount < 5 then
for i = iItemCount + 1, 5 do
SKIN:Bang("!HideMeterGroup Torrent"..i)
end
end
else -- uTorrent not running
SKIN:Bang("!DisableMeasureGroup AllMeasures")
SKIN:Bang("!HideMeterGroup Body")
for i = 1, 5 do
SKIN:Bang("!HideMeterGroup Torrent"..i)
end
end -- Test for uTorrent running
return IsRunning
end -- function Update
function round(num, idp)
local mult = 10^(idp or 0)
return math.floor(num * mult + 0.5) / mult
end -- function round