forked from Stellarium/stellarium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a tour of the Solar System planets
- Loading branch information
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// | ||
// Name: Planet Objects Tour | ||
// License: Public Domain | ||
// Author: C. Gaudion, Alchymylab | ||
// Version: 1.0 | ||
// Description: A tour of the Solar System planets | ||
|
||
// load data array in inc file | ||
|
||
include("common_objects.inc"); | ||
|
||
|
||
LandscapeMgr.setFlagCardinalsPoints(false); | ||
LandscapeMgr.setFlagLandscape(false); | ||
LandscapeMgr.setFlagAtmosphere(false); | ||
|
||
core.wait(2); | ||
|
||
defaultWait = 10; | ||
|
||
LabelMgr.labelScreen("The Solar System - A Tour of the Planets",200,200,true,30,"#ff0000"); | ||
core.wait(5); | ||
LabelMgr.deleteAllLabels(); | ||
|
||
for (i=0; i<planets.length; i++) | ||
{ | ||
objName = planets[i]; | ||
core.selectObjectByName(objName, true); | ||
|
||
StelMovementMgr.autoZoomIn(6); | ||
core.wait(defaultWait); | ||
|
||
StelMovementMgr.zoomTo(40,8); | ||
core.wait(defaultWait); | ||
|
||
} | ||
|
||
LabelMgr.labelScreen("The Solar System - A Tour of the Planets",200,200,true,30,"#ff0000"); | ||
core.wait(defaultWait); | ||
LabelMgr.deleteAllLabels(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters