//Min
minSlider = new Slider(0, 0, 999999, 1);
minSlider.setValue(min);
minSlider.addChangeListener(new ChangeListener() {
public void stateChanged (ChangeEvent event) {
ParticleController controller = editor.getEmitter();
controller.emitter.minParticleCount = (int)minSlider.getValue();
editor.restart();
}
});
//Max
maxSlider = new Slider(0, 0, 999999, 1);
maxSlider.setValue(max);
maxSlider.addChangeListener(new ChangeListener() {
public void stateChanged (ChangeEvent event) {
ParticleController controller = editor.getEmitter();
controller.emitter.maxParticleCount = (int)maxSlider.getValue();
editor.restart();
}
});