sirinsidiator / ESO-LibAddonMenu

http://www.esoui.com/downloads/info7-LibAddonMenu.html
Artistic License 2.0
41 stars 20 forks source link

min value - clampInput #85

Closed Scootworks closed 5 years ago

Scootworks commented 5 years ago

an option to set [clampInput = false] but the possibility to clamp a min value (in my case 0).

sirinsidiator commented 5 years ago

r27 will offer a new property clampFunction which can be used to clamp the value in any way you want. In your case you can set it to the following function:

        clampFunction = function(value, min, max)
            return math.max(min, value)
        end,