Package se.llbit.chunky.renderer.ui

Examples of se.llbit.chunky.renderer.ui.SceneSelector


      File sceneDir = SceneDirectoryPicker.getSceneDirectory(frame);
      if (sceneDir != null) {
        ChunkyOptions config = options.clone();
        config.sceneDir = sceneDir;
        RenderContext context = new RenderContext(config);
        SceneSelector sceneSelector = new SceneSelector(null, context);
        sceneSelector.setLocationRelativeTo(frame);
        if (sceneSelector.isAccepted()) {
          String scene = sceneSelector.getSelectedScene();
          renderControls = new RenderControls(Chunky.this, context);
          renderControls.loadScene(scene);
        }
      }
    } else {
      SceneSelector sceneSelector = new SceneSelector(null, renderControls.getContext());
      sceneSelector.setLocationRelativeTo(frame);
      if (sceneSelector.isAccepted()) {
        String scene = sceneSelector.getSelectedScene();
        renderControls.loadScene(scene);
      }
    }
  }
View Full Code Here

TOP

Related Classes of se.llbit.chunky.renderer.ui.SceneSelector

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.