It is currently April 30th, 2024, 8:03 pm

Need Help with Mouse Scroll

Get help with creating, editing & fixing problems with skins
User avatar
Yincognito
Rainmeter Sage
Posts: 7185
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Need Help with Mouse Scroll

Post by Yincognito »

RoseRain wrote: April 11th, 2024, 1:19 amI am struggling to do it, I have looked at other skins, but It's way over my head and I have no idea what to do to just make it simple. Don't know what MouseScroll actions to put or where.
To summarize, this is extremely simple:
- the mouse scroll actions should be added to the meter spanning over the visible area of the lyrics (here, that would be [LyricsBACKGROUND])
- the principle is incrementally changing the vertical coordinate where the lyrics text is displayed (here, #LyricsY# which is basically [lyrics:Y])
In other words, we "move" the lyrics text up or down as needed, while the [LyricsBGContainer] container meter hides what's outside the visible area.

The Y of the [lyrics] meter is initially 0 because the position of [lyrics] is relative to that of the container meter. It goes negative when scrolling down because then we place [lyrics] at a vertical coordinate "upside" of the container area (in Rainmeter, vertical coordinates increase downwards).
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth