Custom block variable limits

Issue #71 new
Poindexter Frink created an issue

Adding programmable limits to sockets and variables would provide some safety to patch design.

Currently, limits are enforced on input sockets and variables through the Inspector widget's hard limits. This provides a uniform -8000 to 8000 range with 2 digits of precision. By adding a min and a max attribute to variables, custom limits could be enforced in the Inspector widget.

Further, adding a pbits attribute could permit custom precision limits. Setting pbits to 0 would result in integer selection, where 10 bits would allow the full precision. This requires extending the spinboxes so that the spinners clamp to the correct precision when spinning or accepting keyboard input.

This would not impose any limitations on wire connections, only values entered into the Inspector.

Comments (2)

  1. Log in to comment