sky_image2.ssc   sky_image2.ssc 
skipping to change at line 19 skipping to change at line 19
useStatusLabel("Sky Images Test 2: ", 50, core.getScreenHeight() - 50, 16, "#ff0000"); useStatusLabel("Sky Images Test 2: ", 50, core.getScreenHeight() - 50, 16, "#ff0000");
status("Load mutliple images, and turn them on and off..."); status("Load mutliple images, and turn them on and off...");
core.clear("starchart"); core.clear("starchart");
core.selectObjectByName("M31", false); core.selectObjectByName("M31", false);
StelMovementMgr.setFlagTracking(true); StelMovementMgr.setFlagTracking(true);
StelMovementMgr.zoomTo(2,1); StelMovementMgr.zoomTo(2,1);
core.wait(2); core.wait(2);
status("Loading images..."); status("Loading images...");
core.loadSkyImage("image1", "../textures/earthmap.png", 41, 11.5, 41.17, 11 .5, 41.17, 11.75, 41, 11.75); core.loadSkyImage("image1", "../textures/earthmap.png", 11.5, 41, 11.5, 41. 17, 11.75, 41.17, 11.75, 41);
core.wait(1); core.wait(1);
core.loadSkyImage("image2", "../textures/earthmap.png", 41.2, 11.5, 41.37, 11.5, 41.37, 11.75, 41.2, 11.75); core.loadSkyImage("image2", "../textures/earthmap.png", 11.5, 41.2, 11.5, 4 1.37, 11.75, 41.37, 11.75, 41.2);
core.wait(1); core.wait(1);
core.loadSkyImage("image3", "../textures/earthmap.png", 41.4, 11.5, 41.57, 11.5, 41.57, 11.75, 41.4, 11.75); core.loadSkyImage("image3", "../textures/earthmap.png", 11.5, 41.4, 11.5, 4 1.57, 11.75, 41.57, 11.75, 41.4);
core.wait(1); core.wait(1);
status("playing with the on of buttons..."); status("playing with the on of buttons...");
for(i=0; i<15; i++) for(i=0; i<15; i++)
{ {
core.wait(0.1); core.wait(0.1);
if (i%3==0) { if (i%3==0) {
ScreenImageMgr.showImage("image1", true); StelSkyLayerMgr.showLayer("image1", true);
ScreenImageMgr.showImage("image2", false); StelSkyLayerMgr.showLayer("image2", false);
ScreenImageMgr.showImage("image3", false); StelSkyLayerMgr.showLayer("image3", false);
} }
else if ((i+1)%3==0) { else if ((i+1)%3==0) {
ScreenImageMgr.showImage("image1", false); StelSkyLayerMgr.showLayer("image1", false);
ScreenImageMgr.showImage("image2", true); StelSkyLayerMgr.showLayer("image2", true);
ScreenImageMgr.showImage("image3", false); StelSkyLayerMgr.showLayer("image3", false);
} }
else if ((i+2)%3==0) { else if ((i+2)%3==0) {
ScreenImageMgr.showImage("image1", false); StelSkyLayerMgr.showLayer("image1", false);
ScreenImageMgr.showImage("image2", false); StelSkyLayerMgr.showLayer("image2", false);
ScreenImageMgr.showImage("image3", true); StelSkyLayerMgr.showLayer("image3", true);
} }
} }
status("turn off the images (fade would be nice)..."); status("turn off the images (fade would be nice)...");
ScreenImageMgr.showImage("image1", true); StelSkyLayerMgr.showLayer("image1", true);
core.wait(0.5); core.wait(0.5);
ScreenImageMgr.showImage("image2", true); StelSkyLayerMgr.showLayer("image2", true);
core.wait(0.5); core.wait(0.5);
ScreenImageMgr.showImage("image3", true); StelSkyLayerMgr.showLayer("image3", true);
core.wait(1); core.wait(1);
status("unloading images..."); status("unloading images...");
core.removeSkyImage("image1"); core.removeSkyImage("image1");
core.wait(0.5); core.wait(0.5);
core.removeSkyImage("image2"); core.removeSkyImage("image2");
core.wait(0.5); core.wait(0.5);
core.removeSkyImage("image3"); core.removeSkyImage("image3");
status("kthxbye"); status("kthxbye");
core.wait(1); core.wait(1);
LabelMgr.deleteAllLabels(); LabelMgr.deleteAllLabels();
 End of changes. 9 change blocks. 
15 lines changed or deleted 15 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/