Hey guys, so I've been working on this for quite awhile now, but I can't find a working solution.
The layout regarding where the slider is located is:
GUI >
SlidersMainFrame >
MySliderFrame >
TheRealSlider
The SlidersMainFrame is holding together all the different options, which in this case is "MySliderFrame." Then, "TheRealSlider" is the actual frame that you can slide, setting the value of the option. Like volume, etc.
I got it working at first, using a MouseMoved event on the slider object, and then I aligned the object right on the mouse by offsetting the Y value of the MouseMoved event by a number to correct the offset.
I figured it was finished after this.
However, when I tested it in a server, (the window was bigger than studio) I expected it to not work as accurately because I offsetted the Y value of the MouseMoved event by OFFSET. So that would not work on all screen sizes, and sure enough, I was right.
As I was dragging the sliders, they would all instantly go all the way down the slider bar and therefor, leaving me with no possible way to move them from that position...
Any ideas or examples on how to achieve this?? Thanks. :p |