Search in sources :

Example 6 with FileChooser

use of main.swing.generic.components.editors.FileChooser in project Eidolons by IDemiurge.

the class EmitterController method create.

public void create() {
    String presetPath = new FileChooser(PathFinder.getSfxPath()).launch("", "");
    if (presetPath == null) {
        return;
    }
    ImageChooser ic = new ImageChooser();
    ic.setDefaultFileLocation(PathFinder.getSfxPath() + "images//");
    String imagePath = ic.launch("", "");
    add(presetPath, imagePath);
}
Also used : ImageChooser(main.swing.generic.components.editors.ImageChooser) FileChooser(main.swing.generic.components.editors.FileChooser)

Aggregations

FileChooser (main.swing.generic.components.editors.FileChooser)6 Condition (main.elements.conditions.Condition)2 Conditions (main.elements.conditions.Conditions)2 Ref (main.entity.Ref)2 Dungeon (eidolons.game.battlecraft.logic.dungeon.universal.Dungeon)1 DC_Game (eidolons.game.core.game.DC_Game)1 GameLauncher (eidolons.game.core.launch.GameLauncher)1 CompositeAnim (eidolons.libgdx.anims.CompositeAnim)1 EmitterActor (eidolons.libgdx.anims.particles.EmitterActor)1 ScreenData (eidolons.libgdx.screens.ScreenData)1 File (java.io.File)1 ActiveObj (main.entity.obj.ActiveObj)1 ImageChooser (main.swing.generic.components.editors.ImageChooser)1 Document (org.w3c.dom.Document)1