sl23 wrote: ↑February 18th, 2023, 6:32 pm
Although it works on first use, once you click on another button, the scrolling stops working, any idea why that is?
This is a completely normal behavior, because when you click the second or third button, you set a well defined value for the ScreenSaver variable: 0,0,0,150 with [Button2] and 50,10,0,220 with [Button3]. One of these values being set, the scrolling can't work anymore, because the ScreenSaver variable doesn't contain anymore the Alpha variable, which is in fact altered when scrolling.
To fix, you have to rewrite the LeftMouseUpAction options of the [Button2] and [Button3] meters, to not get modified the original ScreenSaver variable. For instance:
Code: Select all
[Button2]
...
LeftMouseUpAction=[!WriteKeyValue Variables ScreenSaver 0,0,0,#*Alpha*#][!SetVariable Alpha "150"][!SetVariable ScreenSaver "0,0,0,[#Alpha]"][!UpdateMeter "Button1"][!UpdateMeter "Background"][!Redraw]
[Button3]
...
LeftMouseUpAction=[!WriteKeyValue Variables ScreenSaver "50,10,0,#*Alpha*#"][!SetVariable Alpha "210"][!SetVariable ScreenSaver "50,10,0,[#Alpha]"][!UpdateMeter "Button1"][!UpdateMeter "Background"][!Redraw]
This code is still not the proper one, because clicking [Button2] will work, however when you click [Button3], the FillColor option (in fact the #ScreenSaver# variable) of the [Background] meter is set to
50,10,0,[#Alpha] (according to the second !SetVariable bang of the LeftMouseUpAction option of the [Button3] meter), but when you start scrolling, this option (and again, in fact the #ScreenSaver# variable) is set back to
0,0,0,[#Alpha], by the MouseScrollDownAction and MouseScrollUpAction options of the [Button1] meter. To fix this, we'll have to add two (or best way, maybe even three) variable, for the red, green and blue components of the color. But for first please test the above update of your code, to see if it works as expected. If it does, the new variables can be added easily. If you get the skin working as expected (excepting the above described issue) and don't you know how to add those variables, please let me know, for further help.