package com.ss.editor.ui.dialog.node.selector;

import com.jme3.light.Light;
import com.jme3.scene.Spatial;
import com.ss.editor.Messages;
import com.ss.editor.annotation.FromAnyThread;
import org.jetbrains.annotations.NotNull;

import java.util.function.Consumer;

/**
 * The implementation of the Node Selector dialog to select a light.
 *
 * @param <T> the type of light
 * @author JavaSaBr
 */
public class LightSelectorDialog<T extends Light> extends NodeSelectorDialog<T> {

    public LightSelectorDialog(@NotNull final Spatial model, @NotNull final Class<T> type,
                               @NotNull final Consumer<T> handler) {
        super(model, type, handler);
    }

    @Override
    @FromAnyThread
    protected @NotNull String getTitleText() {
        return Messages.LIGHT_SELECTOR_DIALOG_TITLE;
    }
}
