package com.ss.editor.ui.control.property.impl.particle;

import com.jme3.effect.ParticleEmitter;
import com.jme3.math.Vector2f;
import com.ss.editor.model.undo.editor.ModelChangeConsumer;
import com.ss.editor.ui.control.property.impl.Vector2FPropertyControl;
import org.jetbrains.annotations.NotNull;

/**
 * The implementation of the {@link Vector2FPropertyControl} to edit images count of the {@link
 * ParticleEmitter}*.
 *
 * @author JavaSaBr.
 */
public class ParticleEmitterImagesModelPropertyControl extends
        Vector2FPropertyControl<ModelChangeConsumer, ParticleEmitter> {

    public ParticleEmitterImagesModelPropertyControl(@NotNull final Vector2f element,
                                                     @NotNull final String paramName,
                                                     @NotNull final ModelChangeConsumer modelChangeConsumer) {
        super(element, paramName, modelChangeConsumer);
        getXField().setMinMax(1, Integer.MAX_VALUE);
        getYField().setMinMax(1, Integer.MAX_VALUE);
    }
}
