Search in sources :

Example 6 with PropertyBoxImpl

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

the class PropertyTextureBoxProducer method createPropertyBox.

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

Example 7 with PropertyBoxImpl

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

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

Example 9 with PropertyBoxImpl

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

the class PropertyVector3BoxProducer method createPropertyBox.

@Override
public PropertyBox createPropertyBox(Skin skin, String name, PropertyLocation location, JsonValue jsonObject, PropertyLocation[] propertyLocations) {
    PropertyBoxImpl result = new PropertyBoxImpl(name, ShaderFieldType.Vector3, location, propertyLocations);
    result.addPropertyBoxPart(new Vector3BoxPart("Vector3", "x", "y", "z", 0, 0, 0, null, null, null));
    result.initialize(jsonObject);
    return result;
}
Also used : Vector3BoxPart(com.gempukku.libgdx.graph.ui.part.Vector3BoxPart) 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