forked from Stellarium/stellarium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathh400_tour.ssc
75 lines (67 loc) · 2.61 KB
/
h400_tour.ssc
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
//
// Name: Herschel 400 Tour
// License: Public Domain
// Author: Alexander Wolf
// Version: 1.3
// Description: A tour around objects from the Herschel 400 Catalogue
include("common_objects.inc");
include("i18n.inc");
var color="#00AAFF";
core.clear("deepspace");
core.setGuiVisible(false);
StelMovementMgr.setFlagTracking(true);
var id = LabelMgr.labelScreen(tr("The Herschel 400 Catalogue"), 20, 20, false, 30, color);
var info1 = LabelMgr.labelScreen(tr("The Herschel 400 is a subset of John Herschel's General Catalogue of Nebulae and Clusters"), 20, 60, false, 20, color);
var info2 = LabelMgr.labelScreen(tr("published in 1864 of 5,000 objects, and hence also of the New General Catalogue."), 20, 85, false, 20, color);
var stat1 = LabelMgr.labelScreen(tr("Vital statistics:"), 20, 120, false, 16, color);
var stat2 = LabelMgr.labelScreen(tr("* The catalogue contains 400 objects"), 20, 140, false, 16, color);
var stat3 = LabelMgr.labelScreen(tr("* All objects are from the NGC"), 20, 160, false, 16, color);
var stat4 = LabelMgr.labelScreen(tr("* All visible in mid northern latitudes"), 20, 180, false, 16, color);
var stat5 = LabelMgr.labelScreen(tr("* All visible in 150 mm (6\") or larger telescopes"), 20, 200, false, 16, color);
LabelMgr.setLabelShow(id, true);
LabelMgr.setLabelShow(info1, true);
LabelMgr.setLabelShow(info2, true);
LabelMgr.setLabelShow(stat1, true);
LabelMgr.setLabelShow(stat2, true);
LabelMgr.setLabelShow(stat3, true);
LabelMgr.setLabelShow(stat4, true);
LabelMgr.setLabelShow(stat5, true);
core.wait(10);
LabelMgr.setLabelShow(id, false);
LabelMgr.setLabelShow(info1, false);
LabelMgr.setLabelShow(info2, false);
LabelMgr.setLabelShow(stat1, false);
LabelMgr.setLabelShow(stat2, false);
LabelMgr.setLabelShow(stat3, false);
LabelMgr.setLabelShow(stat4, false);
LabelMgr.setLabelShow(stat5, false);
LabelMgr.deleteLabel(id);
LabelMgr.deleteLabel(info1);
LabelMgr.deleteLabel(info2);
LabelMgr.deleteLabel(stat1);
LabelMgr.deleteLabel(stat2);
LabelMgr.deleteLabel(stat3);
LabelMgr.deleteLabel(stat4);
LabelMgr.deleteLabel(stat5);
NebulaMgr.setFlagShow(true);
NebulaMgr.setFlagHints(true);
var dss = ToastMgr.getFlagShow();
for (i=0; i<herschel400.length; i++)
{
core.selectObjectByName(herschel400[i], true);
id = LabelMgr.labelScreen(herschel400[i], 20, 20, false, 30, color);
LabelMgr.setLabelShow(id, true);
StelMovementMgr.autoZoomIn(3);
core.wait(2);
ToastMgr.setFlagShow(true);
core.wait(13);
LabelMgr.setLabelShow(id, false);
StelMovementMgr.zoomTo(40, 3);
core.wait(2);
ToastMgr.setFlagShow(false);
core.wait(3);
}
core.clear("natural");
ToastMgr.setFlagShow(dss);
core.setGuiVisible(true);
core.goHome();