use of limelight.model.Stage in project limelight by slagyr.
the class JavaProductionTest method loadsStagesWithOptions.
@Test
public void loadsStagesWithOptions() throws Exception {
assumeTrue(TestUtil.notHeadless());
fs.createTextFile("/testProduction/stages.xml", "<stages><egats title='Eureka!'/></stages>");
production.loadStages();
final Stage stage = production.getTheater().get("egats");
assertEquals(FramedStage.class, stage.getClass());
FramedStage framedStage = (FramedStage) stage;
assertEquals("Eureka!", framedStage.getTitle());
}
use of limelight.model.Stage in project limelight by slagyr.
the class JavaProductionTest method loadsStages.
@Test
public void loadsStages() throws Exception {
assumeTrue(TestUtil.notHeadless());
fs.createTextFile("/testProduction/stages.xml", "<stages><egats/></stages>");
production.loadStages();
final Stage stage = production.getTheater().get("egats");
assertNotNull(stage);
assertEquals("egats", stage.getName());
}
use of limelight.model.Stage in project limelight by slagyr.
the class UtilitiesTest method riggerScene.
@Test
public void riggerScene() throws Exception {
utilities.openRigger();
final Stage stage = production.getTheater().get("rigger");
assertEquals(true, stage.isOpen());
assertEquals("rigger", stage.getScene().getAbsoluteName());
}
use of limelight.model.Stage 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))
}
use of limelight.model.Stage in project limelight by slagyr.
the class Utilities method alert.
public Object alert(String message) {
alertMessage = message;
alertResponse = null;
Stage alertStage = establishStage("Alert", dialogStageOptions);
production.openScene("alert", "Alert", Util.toMap());
waitForResponse(alertMonitor);
alertStage.close();
return alertResponse;
}
Aggregations