Nifty Gui Sliders XML

I am trying to implement sliders in my settings option using XML but I am unable to find the documentation for it. I was just wondering how to implement <interact> tag for it and get values each time the sliders are clicked.

There are many ways to use Nifty controls. What I find works well for me is to give each slider in the XML an id like so

                       &lt;control name="horizontalSlider" id="cloudinessSlider"
                                 buttonStepSize="1"
                                 initial="1"
                                 max="1"
                                 min="0"
                                 stepSize="0.01"/&gt;

and then poll its value on each update using
[java]
String id = “cloudinessSlider”;
Slider slider = getScreen().findNiftyControl(id, Slider.class);
float value = slider.getValue();
[/java]
In other words, I don’t use <interact> for sliders at all.

I hope that’s helpful.