Search in sources :

Example 1 with PropertyBoxImpl

use of com.gempukku.libgdx.graph.ui.graph.property.PropertyBoxImpl 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 PropertyBoxImpl

use of com.gempukku.libgdx.graph.ui.graph.property.PropertyBoxImpl in project gdx-graph by MarcinSc.

the class PropertyVector2BoxProducer method createPropertyBox.

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

Example 3 with PropertyBoxImpl

use of com.gempukku.libgdx.graph.ui.graph.property.PropertyBoxImpl in project gdx-graph by MarcinSc.

the class PipelinePropertyBoxProducerImpl method createPropertyBox.

@Override
public PropertyBox createPropertyBox(Skin skin, String name, PropertyLocation location, JsonValue jsonObject, PropertyLocation[] propertyLocations) {
    PropertyBoxImpl result = new PropertyBoxImpl(name, type, null, propertyLocations);
    for (Supplier<PropertyBoxPart> propertyBoxPart : propertyBoxParts) {
        result.addPropertyBoxPart(propertyBoxPart.get());
    }
    result.initialize(jsonObject);
    return result;
}
Also used : PropertyBoxImpl(com.gempukku.libgdx.graph.ui.graph.property.PropertyBoxImpl) PropertyBoxPart(com.gempukku.libgdx.graph.ui.graph.property.PropertyBoxPart)

Example 4 with PropertyBoxImpl

use of com.gempukku.libgdx.graph.ui.graph.property.PropertyBoxImpl in project gdx-graph by MarcinSc.

the class PropertyColorBoxProducer method createPropertyBox.

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

Example 5 with PropertyBoxImpl

use of com.gempukku.libgdx.graph.ui.graph.property.PropertyBoxImpl in project gdx-graph by MarcinSc.

the class PropertyMatrix4BoxProducer method createPropertyBox.

@Override
public PropertyBox createPropertyBox(Skin skin, String name, PropertyLocation location, JsonValue jsonObject, PropertyLocation[] propertyLocations) {
    PropertyBoxImpl result = new PropertyBoxImpl(name, ShaderFieldType.Matrix4, location, propertyLocations);
    result.addPropertyBoxPart(new Vector4BoxPart("", "x1", "y1", "z1", "w1", 1, 0, 0, 0, null, null, null, null));
    result.addPropertyBoxPart(new Vector4BoxPart("", "x2", "y2", "z2", "w2", 0, 1, 0, 0, null, null, null, null));
    result.addPropertyBoxPart(new Vector4BoxPart("", "x3", "y3", "z3", "w3", 0, 0, 1, 0, null, null, null, null));
    result.addPropertyBoxPart(new Vector4BoxPart("", "x4", "y4", "z4", "w4", 0, 0, 0, 1, null, null, null, null));
    result.initialize(jsonObject);
    return result;
}
Also used : Vector4BoxPart(com.gempukku.libgdx.graph.ui.part.Vector4BoxPart) PropertyBoxImpl(com.gempukku.libgdx.graph.ui.graph.property.PropertyBoxImpl)

Aggregations

PropertyBoxImpl (com.gempukku.libgdx.graph.ui.graph.property.PropertyBoxImpl)9 IntegerBoxPart (com.gempukku.libgdx.graph.ui.part.IntegerBoxPart)2 PropertyBoxPart (com.gempukku.libgdx.graph.ui.graph.property.PropertyBoxPart)1 ColorBoxPart (com.gempukku.libgdx.graph.ui.part.ColorBoxPart)1 FileSelectorBoxPart (com.gempukku.libgdx.graph.ui.part.FileSelectorBoxPart)1 FloatBoxPart (com.gempukku.libgdx.graph.ui.part.FloatBoxPart)1 Vector2BoxPart (com.gempukku.libgdx.graph.ui.part.Vector2BoxPart)1 Vector3BoxPart (com.gempukku.libgdx.graph.ui.part.Vector3BoxPart)1 Vector4BoxPart (com.gempukku.libgdx.graph.ui.part.Vector4BoxPart)1