Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1609

Help: Rainmeter Skins • Re: Need Help with Mouse Scroll

$
0
0
I think what you are saying, if I understood correctly.. is that it stops the scrolling when it hits the end of the lyrics, so it doesn't keep scrolling blank where there is no text. That is actually what I was hoping for. But Reading what you have written there, it sounds like a completely different language to me, and I don't understand it.
Don't worry Rose, after a year, I'm just starting to understand his language. :lol:

So he is saying, If I understood correctly, to replace:

Code:

MouseScrollDownAction=[!SetVariable LyricsY (clamp([#LyricsY]-[#ScrollIncrement],-10000,0))][!UpdateMeter Lyrics][!Redraw]MouseScrollUpAction=[!SetVariable LyricsY (clamp([#LyricsY]+[#ScrollIncrement],-10000,0))][!UpdateMeter Lyrics][!Redraw]

With:

Code:

MouseScrollDownAction=[!SetVariable LyricsY (clamp([#LyricsY]-[#ScrollIncrement],(min([LyricsBGContainer:H]-[lyrics:H],0)),0))][!UpdateMeter Lyrics][!Redraw]MouseScrollUpAction=[!SetVariable LyricsY (clamp([#LyricsY]+[#ScrollIncrement],(min([LyricsBGContainer:H]-[lyrics:H],0)),0))][!UpdateMeter Lyrics][!Redraw]
By the way, also replace ClipString=1 with ClipString=2 on the [Lyrics] meter. I noticed the lyrics where not complete, that was causing it.

The bang uses the Clamp function, it limits a value between a minimum (low bound) and a maximum (high bound) value.
The difference between the height of the container and the height of the lyrics meter is: "[LyricsBGContainer:H]-[lyrics:H]", the H means Height.
This is our minimum or "low bound" (it's a negative value) and 0 would be our "high bound" or maximum. So yes, it stops the scrolling when it hits the end of the lyrics. The min function limits it so it stays at 0 when there are no lyrics.
A minor observation:
Thanks Yin, I honestly didn't come up with how to do it, and was on a rush, so I left it there, hoping someone would notice it and correct me.

Statistics: Posted by RicardoTM — Yesterday, 12:19 pm



Viewing all articles
Browse latest Browse all 1609

Trending Articles