Search in sources :

Example 1 with Production

use of limelight.model.Production in project limelight by slagyr.

the class Devtool method refresh.

public void refresh(Event e) {
    PanelEvent event = (PanelEvent) e;
    final Production production = event.getRecipient().getRoot().getProduction();
    final List<Stage> stages = production.getTheater().getStages();
    for (Stage stage : stages) {
        production.openScene(stage.getScene().getResourceLoader().getRoot(), stage, new Opts());
    }
//      (let [scene (.getRoot (.getRecipient e))
//        stage (.getStage scene)
//        production (.getProduction scene)
//        stages (.getStages (.getTheater production))]
//    (println stages)
//    (doall (map
//      (fn [stage]
//        (println "stage: " stage)
//        (.openScene production (.getName (.getScene stage)) stage (limelight.util.Opts. {})))
//      stages))
}
Also used : PanelEvent(limelight.ui.events.panel.PanelEvent) Opts(limelight.util.Opts) Production(limelight.model.Production) Stage(limelight.model.Stage)

Aggregations

Production (limelight.model.Production)1 Stage (limelight.model.Stage)1 PanelEvent (limelight.ui.events.panel.PanelEvent)1 Opts (limelight.util.Opts)1