Search in sources :

Example 1 with IntegerBoxPart

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

the class BoneTransformPropertyBoxProducer method createPropertyBox.

@Override
public PropertyBox createPropertyBox(Skin skin, String name, PropertyLocation location, JsonValue jsonObject, PropertyLocation[] propertyLocations) {
    PropertyBoxImpl result = new PropertyBoxImpl(name, BoneTransformFieldType.type, location, propertyLocations);
    result.addPropertyBoxPart(new IntegerBoxPart("Max bone count", "maxBoneCount", 12, new Validators.GreaterThanValidator(0)));
    result.initialize(jsonObject);
    return result;
}
Also used : PropertyBoxImpl(com.gempukku.libgdx.graph.ui.graph.property.PropertyBoxImpl) IntegerBoxPart(com.gempukku.libgdx.graph.ui.part.IntegerBoxPart)

Example 2 with IntegerBoxPart

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

the class BoneWeightPropertyBoxProducer method createPropertyBox.

@Override
public PropertyBox createPropertyBox(Skin skin, String name, PropertyLocation location, JsonValue jsonObject, PropertyLocation[] propertyLocations) {
    PropertyBoxImpl result = new PropertyBoxImpl(name, BoneWeightFieldType.type, location, propertyLocations);
    result.addPropertyBoxPart(new IntegerBoxPart("Max bone weights", "maxBoneWeightCount", 4, new Validators.GreaterThanValidator(0)));
    result.initialize(jsonObject);
    return result;
}
Also used : PropertyBoxImpl(com.gempukku.libgdx.graph.ui.graph.property.PropertyBoxImpl) IntegerBoxPart(com.gempukku.libgdx.graph.ui.part.IntegerBoxPart)

Aggregations

PropertyBoxImpl (com.gempukku.libgdx.graph.ui.graph.property.PropertyBoxImpl)2 IntegerBoxPart (com.gempukku.libgdx.graph.ui.part.IntegerBoxPart)2