geraintluff/jsfx-ui-lib

Controls that have multiple values?

Closed this issue · 1 comments

Trying to wrap my head around writing some custom controls.

I want to create a puck control that can be dragged around in a box. However this clearly needs an X and a Y value.

With a slider this is easy because it only has one value, so you can just return it's value. How would you recommend dealing with the need to return more than one value?

Don't worry. I'll just create a stack to handle multiple values. Closing.