It is currently April 23rd, 2024, 6:12 am

Volume Adjust [Solved]

Get help with creating, editing & fixing problems with skins
User avatar
CyberTheWorm
Posts: 860
Joined: August 22nd, 2016, 11:32 pm
Location: Surrey, B.C., Canada

Volume Adjust [Solved]

Post by CyberTheWorm »

I'm creating a skin to adjust the volume by clicking on a Bar meter. I have it working to some extent, but when I click at the bottom of the bar it sets the volume to 100% and when I click at the top it sets it to 0%. This is backwards to what I'm trying to do.

Code: Select all

[MeterVolumeBar]
Meter=Bar
MeasureName=MeasureVolumeLevel
X=395
Y=210
W=2
H=100
BarColor=#Blue#
SolidColor=255,255,255,100
BarOrientation=Vertical
LeftMouseUpAction=[!CommandMeasure MeasurePlayer "SetVolume $MouseY:%$"]
ToolTipText=Left Mouse click to set position
If I add

Code: Select all

Flip=1
it works correctly but then the 0% is at the top not the bottom.
The only source of knowledge is experience. Albert Einstein
Deviant Art Page
User avatar
CyberTheWorm
Posts: 860
Joined: August 22nd, 2016, 11:32 pm
Location: Surrey, B.C., Canada

Re: Volume Adjust [Solved]

Post by CyberTheWorm »

The only source of knowledge is experience. Albert Einstein
Deviant Art Page