Skip to content

Commit

Permalink
Added a tour of the Solar System planets
Browse files Browse the repository at this point in the history
  • Loading branch information
Colin Gaudion authored and alex-w committed Nov 22, 2018
1 parent 640eb95 commit 0d3638c
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
40 changes: 40 additions & 0 deletions scripts/planets_tour.ssc
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();
3 changes: 3 additions & 0 deletions src/translations.h
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,8 @@ class Translations
N_("Occultations of bright stars by planets");
// TRANSLATORS: Name of script
N_("Mutual occultations of planets");
// TRANSLATORS: Name of script
N_("Planet Objects Tour");

// =====================================================================
// Script descriptions
Expand Down Expand Up @@ -672,6 +674,7 @@ class Translations
N_("The planet Jupiter sometimes appears to be without moons, when the four Galilean satellites are simultaneously invisible because they are passing across the planet's disk (transit), are behind the planet (occultation), or are in its shadow (eclipse). This script demonstrates these rare phenomena from 1900 to 2100 in Dynamical Time.");
N_("This script demonstrates interesting phenomena - occultations bright stars by planets, 2000 to 2040.");
N_("This script demonstrates interesting and very rare phenomena - mutual occultations of planets, 0 to 2500.");
N_("A tour of the Solar System planets");

// =====================================================================
// List of GUI elements (Qt's dialogs)
Expand Down

0 comments on commit 0d3638c

Please sign in to comment.