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;
}
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;
}
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;
}
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;
}
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;
}
Aggregations