CheckBox source = (CheckBox)event.getListenerActor();
post.crt.setEnabled( source.isChecked() );
}
} );
final Slider slCrtDispersionRC = ResourceFactory.newSlider( -1f, 1f, 0.001f, post.crt.getChromaticDispersion().x,
new ChangeListener() {
@Override
public void changed( ChangeEvent event, Actor actor ) {
Slider source = (Slider)event.getListenerActor();
post.crt.setChromaticDispersionRC( source.getValue() );
}
} );
final Slider slCrtDispersionBY = ResourceFactory.newSlider( -1f, 1f, 0.001f, post.crt.getChromaticDispersion().y,
new ChangeListener() {
@Override
public void changed( ChangeEvent event, Actor actor ) {
Slider source = (Slider)event.getListenerActor();
post.crt.setChromaticDispersionBY( source.getValue() );
}
} );
slCrtDispersionRC.setSnapToValues( new float[] { 0 }, 0.05f );
slCrtDispersionBY.setSnapToValues( new float[] { 0 }, 0.05f );
final Slider slCrtTintR = ResourceFactory.newSlider( 0, 1f, 0.01f, post.crt.getTint().r, new ChangeListener() {
@Override
public void changed( ChangeEvent event, Actor actor ) {
Slider source = (Slider)event.getListenerActor();
Color tint = post.crt.getTint();
tint.r = source.getValue();
post.crt.setTint( tint );
}
} );
final Slider slCrtTintG = ResourceFactory.newSlider( 0, 1f, 0.01f, post.crt.getTint().g, new ChangeListener() {
@Override
public void changed( ChangeEvent event, Actor actor ) {
Slider source = (Slider)event.getListenerActor();
Color tint = post.crt.getTint();
tint.g = source.getValue();
post.crt.setTint( tint );
}
} );
final Slider slCrtTintB = ResourceFactory.newSlider( 0, 1f, 0.01f, post.crt.getTint().b, new ChangeListener() {
@Override
public void changed( ChangeEvent event, Actor actor ) {
Slider source = (Slider)event.getListenerActor();
Color tint = post.crt.getTint();
tint.b = source.getValue();
post.crt.setTint( tint );
}
} );
Table t = ResourceFactory.newTable();