[solved] Implement a slider with specific ratings
Hello,
I'd like to implement a slider that includes amounts for an Ultimatum Decision Making task.
Something similar to the one in a previous discussion: http://forum.cogsci.nl/index.php?p=/discussion/40/solved-implementing-a-slider/p1
But with specific amounts along the slider bar - please the rough example here.
Thanks in advance!

Comments
Hi,
First of all, you can also have look on this discussion:
together they should get you enough information to get started.
In order to have values along the scale you have to add folllowing features:
divide the length of the scale into equal-sized parts, which serve as coordinates to draw your markers on
assuming that in those discussions mentioned, mouse position and corresponding values are being recorded, you only have to create a piece of code that dynamically draws the value at a position above that scale that is fixed in the vertical dimension (y is constant), but variable in the horizontal one (x is changing).
The code could look like this:
I hope this helps. Let me know if you need more pointers.
Good luck,
Eduard
Hi Eduard,
Thanks a lot! It works great now