Search in sources :

Example 1 with ColorBoxPart

use of com.gempukku.libgdx.graph.ui.part.ColorBoxPart 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)

Aggregations

PropertyBoxImpl (com.gempukku.libgdx.graph.ui.graph.property.PropertyBoxImpl)1 ColorBoxPart (com.gempukku.libgdx.graph.ui.part.ColorBoxPart)1