File: landscapes.ssc

package info (click to toggle)
stellarium 25.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,307,224 kB
  • sloc: ansic: 317,377; cpp: 214,435; xml: 48,592; javascript: 26,073; python: 2,113; perl: 734; sh: 247; makefile: 192; pascal: 169
file content (44 lines) | stat: -rw-r--r-- 985 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//
// Name: Landscape Tour
// License: Public Domain
// Author: Matthew Gates
// Version: 1.0
// Description: Look around each installed landscape.
//

alt = 0;
LabelMgr.deleteAllLabels();
core.clear("natural");
core.setDate("2008:11:05T12:00:00", "local");
core.setTimeRate(1);
core.moveToAltAzi(alt, 0, 3);
StelMovementMgr.zoomTo(60, 3);
core.wait(3);
allIDs = LandscapeMgr.getAllLandscapeIDs();
for(i=0; i<allIDs.length; i++)
{
	id = allIDs[i];
	name = LandscapeMgr.setCurrentLandscapeID(id);
	core.wait(2);
	name = LandscapeMgr.getCurrentLandscapeName();
	if (name == "Mars" || name == "Moon")
	{
		LandscapeMgr.setFlagAtmosphere(false);
	}
	else
	{
		LandscapeMgr.setFlagAtmosphere(true);
	}
	core.wait(1);
	lab = LabelMgr.labelScreen(name, 100, 100, false, 25, "#ff2200");
	LabelMgr.setLabelShow(lab, true);
	core.wait(2);
	for(azi=90; azi<=360; azi+=90)
	{
		core.moveToAltAzi(alt, azi, 3);
		core.wait(4);
		LabelMgr.setLabelShow(lab, false);
	}
	LabelMgr.deleteLabel(lab);
}