Search in sources :

Example 1 with FileSelectorBoxPart

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

Aggregations

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