Search in sources :

Example 1 with FilesDroppedListener

use of com.ray3k.skincomposer.FilesDroppedListener in project skin-composer by raeleus.

the class DesktopLauncher method filesDropped.

@Override
public void filesDropped(String[] files) {
    Array<FileHandle> fileHandles = new Array<>();
    for (String file : files) {
        FileHandle fileHandle = new FileHandle(file);
        fileHandles.add(fileHandle);
    }
    for (FilesDroppedListener listener : filesDroppedListeners) {
        listener.filesDropped(fileHandles);
    }
}
Also used : Array(com.badlogic.gdx.utils.Array) FileHandle(com.badlogic.gdx.files.FileHandle) FilesDroppedListener(com.ray3k.skincomposer.FilesDroppedListener)

Aggregations

FileHandle (com.badlogic.gdx.files.FileHandle)1 Array (com.badlogic.gdx.utils.Array)1 FilesDroppedListener (com.ray3k.skincomposer.FilesDroppedListener)1