Code: Select all
local function scrollName()
local length = string.len(trackLabel)
if length > 35 then
if labelVar > length then labelVar = 0 end
songLabel:SetCaption(string.sub(trackLabel, labelVar)..string.sub(trackLabel,0, labelVar-1))
labelVar = labelVar + 1
end
end
What I'd like to do is draw the title twice, one slightly after the other and move them slowly to the left while clipping them to within the parent chili window. I feel like this would be easy if I knew anything about drawing fonts but I don't, so any advice?