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.
Improve the parts of celestial navigation:
- Added ability to toggle to using decimal degrees for various navigational data through follow the option "Use decimal degrees" in the main GUI (fix Stellarium#1344) - Added script with shortcut, which add ability to jump to random location for celestial navigation game and practice (fix Stellarium#1345)
- Loading branch information
Showing
7 changed files
with
67 additions
and
22 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// | ||
// Name: Random location | ||
// Author: Alexander Wolf | ||
// Shortcut: Ctrl+D,L | ||
// License: Public Domain | ||
// Version: 1.0 | ||
// Description: This script will help you make practical works for celestial navigation - he sets a random location and hides it from the GUI. | ||
// | ||
|
||
function randomFloat(min, max) { | ||
return min + (max - min) * Math.random(); | ||
} | ||
|
||
if (core.isModuleLoaded("Satellites")) | ||
{ | ||
if (Satellites.getFlagHintsVisible()) { | ||
Satellites.setFlagHintsVisible(false); | ||
} | ||
} | ||
if (core.isModuleLoaded("NavStars")) | ||
{ | ||
if (!NavStars.getNavStarsMarks()) { | ||
NavStars.setNavStarsMarks(true); | ||
} | ||
} | ||
core.wait(0.5); | ||
core.setObserverLocation(randomFloat(-180., 180.), randomFloat(-90., 90.), 1., 1., "unknown location", "Earth"); | ||
core.wait(1.); |
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