sirinsidiator / ESO-LibAddonMenu

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

Slider improvements #49

Closed sirinsidiator closed 8 years ago

sirinsidiator commented 8 years ago

Some things that I have noticed while using sliders in AwesomeGuildStore:

sirinsidiator commented 8 years ago

Added "autoSelect" boolean. When it is true "OnFocusGained" is pre-hooked to select all text in the input box.

sirinsidiator commented 8 years ago

Added "inputLocation" option which accepts "right" or "below" (default). This option will put the input field on the right side and change the size. It should only be used for sliders in custom panels as it doesn't really look good in the default addon menu.

sirinsidiator commented 8 years ago

Added "clampInput" which defaults to true and if turned off allows values in the text input to go outside the range of the slider (specified by min and max). This also allows the mouse wheel to go change the value beyond these limits.

I also corrected the decimals option not working in some cases and the slider behavior when the text input field is used. It now will apply the value whenever the field looses focus, unless this happens because of the user pressing the escape key.