Search in sources :

Example 1 with FloatBoxPart

use of com.gempukku.libgdx.graph.ui.part.FloatBoxPart in project gdx-graph by MarcinSc.

the class PropertyFloatBoxProducer method createPropertyBox.

@Override
public PropertyBox createPropertyBox(Skin skin, String name, PropertyLocation location, JsonValue jsonObject, PropertyLocation[] propertyLocations) {
    PropertyBoxImpl result = new PropertyBoxImpl(name, ShaderFieldType.Float, location, propertyLocations);
    result.addPropertyBoxPart(new FloatBoxPart("Value", "x", 0, null));
    result.initialize(jsonObject);
    return result;
}
Also used : FloatBoxPart(com.gempukku.libgdx.graph.ui.part.FloatBoxPart) PropertyBoxImpl(com.gempukku.libgdx.graph.ui.graph.property.PropertyBoxImpl)

Example 2 with FloatBoxPart

use of com.gempukku.libgdx.graph.ui.part.FloatBoxPart in project gdx-graph by MarcinSc.

the class TimeShaderBoxProducer method createPipelineGraphBox.

@Override
public GraphBox createPipelineGraphBox(Skin skin, String id, JsonValue data) {
    GraphBoxImpl result = createGraphBox(id);
    FloatBoxPart multiplierPart = new FloatBoxPart("Multiplier", "multiplier", 1f, null);
    multiplierPart.initialize(data);
    result.addGraphBoxPart(multiplierPart);
    addConfigurationInputsAndOutputs(result);
    return result;
}
Also used : FloatBoxPart(com.gempukku.libgdx.graph.ui.part.FloatBoxPart) GraphBoxImpl(com.gempukku.libgdx.graph.ui.graph.GraphBoxImpl)

Example 3 with FloatBoxPart

use of com.gempukku.libgdx.graph.ui.part.FloatBoxPart in project gdx-graph by MarcinSc.

the class DepthOfFieldBoxProducer method createPipelineGraphBox.

@Override
public GraphBox createPipelineGraphBox(Skin skin, String id, JsonValue data) {
    GraphBoxImpl result = createGraphBox(id);
    FloatBoxPart maxBlurPart = new FloatBoxPart("Max blur", "maxBlur", 10, new Validators.GreaterThanValidator(0, false));
    maxBlurPart.setValue(10f);
    maxBlurPart.initialize(data);
    result.addGraphBoxPart(maxBlurPart);
    CheckboxBoxPart blurBackground = new CheckboxBoxPart("Blur background", "blurBackground");
    blurBackground.setValue(false);
    blurBackground.initialize(data);
    result.addGraphBoxPart(blurBackground);
    addConfigurationInputsAndOutputs(result);
    return result;
}
Also used : FloatBoxPart(com.gempukku.libgdx.graph.ui.part.FloatBoxPart) GraphBoxImpl(com.gempukku.libgdx.graph.ui.graph.GraphBoxImpl) CheckboxBoxPart(com.gempukku.libgdx.graph.ui.part.CheckboxBoxPart) Validators(com.kotcrab.vis.ui.util.Validators)

Aggregations

FloatBoxPart (com.gempukku.libgdx.graph.ui.part.FloatBoxPart)3 GraphBoxImpl (com.gempukku.libgdx.graph.ui.graph.GraphBoxImpl)2 PropertyBoxImpl (com.gempukku.libgdx.graph.ui.graph.property.PropertyBoxImpl)1 CheckboxBoxPart (com.gempukku.libgdx.graph.ui.part.CheckboxBoxPart)1 Validators (com.kotcrab.vis.ui.util.Validators)1