Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates in Scripting Engine and scripts
* Added new method in ConstellationMgr class - getConstellationsEnglishNames() to get English names of all constellations in the loaded sky culture; * The old script 'Constellations Tour' was renamed to the 'Western Constellations Tour' and updated (fixed behaviour of script); * Added new one script 'Constellations Tour' to organize the tour around constellations on the loaded sky culture; * Fixed documents for core.clear() method; * Extract new lines for translation.
- Loading branch information
Showing
8 changed files
with
244 additions
and
174 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,45 @@ | ||
// | ||
// Name: Western Constellations Tour | ||
// License: Public Domain | ||
// Author: Alexander Wolf | ||
// Shortcut: Ctrl+D,1 | ||
// Version: 1.2 | ||
// Description: A tour of the western constellations. | ||
|
||
include("common_objects.inc"); | ||
|
||
core.clear("starchart"); | ||
var skyculture = core.getSkyCulture(); | ||
core.setSkyCulture("western"); | ||
GridLinesMgr.setFlagEquatorGrid(false); | ||
NebulaMgr.setFlagHints(false); | ||
ConstellationMgr.setFlagArt(false); | ||
ConstellationMgr.setFlagBoundaries(false); | ||
ConstellationMgr.setFlagLines(false); | ||
ConstellationMgr.setFlagLabels(false); | ||
core.setGuiVisible(false); | ||
var id = LabelMgr.labelScreen("Press Ctrl+T to un-hide the toolbar", 100,100, false, 20); | ||
LabelMgr.setLabelShow(id, true); | ||
core.wait(4); | ||
LabelMgr.setLabelShow(id, false); | ||
LabelMgr.deleteLabel(id); | ||
ConstellationMgr.setFlagBoundaries(true); | ||
ConstellationMgr.setFlagLines(true); | ||
ConstellationMgr.setFlagLabels(true); | ||
ConstellationMgr.setFlagIsolateSelected(true); | ||
|
||
for (i=0; i<constellations.length; i++) | ||
{ | ||
objName = constellations[i]; | ||
core.selectConstellationByName(objName); | ||
StelMovementMgr.autoZoomIn(6); | ||
core.wait(1); | ||
StelMovementMgr.zoomTo(40,8); | ||
core.wait(1); | ||
ConstellationMgr.setFlagArt(true); | ||
core.wait(10); | ||
ConstellationMgr.setFlagArt(false); | ||
} | ||
core.setSkyCulture(skyculture); | ||
core.setGuiVisible(true); | ||
core.clear("natural"); |
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
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
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
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
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