This is an expanded remake of my earlier smooth fade script
. I'm a little proud of it. :)
Code: Select all
That's it. You do not need to include "Disabled=1" or "UpdateDivider=1". The script
handles its own update rate automatically.
Once the script
is loaded, you can use these bangs anywhere you want:
!CommandMeasure Transition "MoveToX('MeterName', 100)"
!CommandMeasure Transition "MoveToY('MeterName', 5)"
Move the meter(s) to a coordinate.
!CommandMeasure Transition "MoveByX('MeterName', 120)"
!CommandMeasure Transition "MoveByY('MeterName', -50)"
Move the meter(s) by a number of pixels.
!CommandMeasure Transition "MoveToggleX('MeterName', 0, 200)"
!CommandMeasure Transition "MoveToggleY('MeterName', 50, 150)"
Toggle the meter(s) between two coordinates.
!CommandMeasure Transition "Fade('MeterName', 128)"
Fade the meter(s) to a certain alpha value. Since not all meters use the same option for transparency, the script looks for one of the following: ImageAlpha, ImageTint, FontColor, PrimaryColor, BarColor, LineColor, SolidColor. It uses whichever one it finds first.
!CommandMeasure Transition "FadeIn('MeterName')"
!CommandMeasure Transition "FadeOut('MeterName')"
Fade the meter(s) in (to 255) or out (to 0).
!CommandMeasure Transition "FadeToggle('MeterName', , )"
Toggle the meter(s) between two alpha values. Defaults to "0" and "255" if no numbers are given.
You do not need to set a lower UpdateDivider on your meters. They can even have UpdateDivider=-1. They will automatically update during the transition
, then return to normal after it's done.
If you need to use one transition
command many times, you can create a profile
for it by adding an option to the script
Code: Select all
The parameters are separated by semicolons (no spaces). The first is the name
of the profile, whatever you want it to be. The second is the command
name, from the list above. Everything else is added as a parameter
to that command. You can run the profile with:
!CommandMeasure Transition Profile('MyProfileName')
You do not have the required permissions to view the files attached to this post.