Based on ElChristou's idea, I've added another new feature called InfoScript.
InfoScript allows user to display more information about the selected object by switching to 'Ultra Verbose' mode and also by running a default or customized cel/celx script.
This function is available via the Contextual Menu displayed when right-clicking on an object. Then, when user chooses the new option 'More about XX' where XX is the selected object, the Information Text automatically switches to 'Ultra Verbose' and a customized script is launched, for example 'infoscript_Earth.celx' for the Earth.
The script filename is added to the .ssc object definition. Info scripts must be placed in the 'scripts/infoscripts' subfolder. For example, The 'infoscript_Earth.celx' script for the Earth is declared in the 'info_planet.ssc' file (of the 'extras/infos' subfolder) :
Code: Select all
Modify "Earth" "Sol"
{
InfoScript "infoscript_Earth.celx"
InfoText "
The Earth, 3rd planet of our Solar System :
Mass (kg) 5.976e+24
...
"
}
The 'infoscript_default.celx' script will be launched for all objects that don't have any customized script available.
-----------------------------------------------------------------
Here are the links to test the Info Script feature :
-----------------------------------------------------------------
* Windows : http://vincent.gian.club.fr/celestia/ce ... patch3.zip
> Just unzip and paste the content of the celestia_win32_1.4.1_patch3 folder into your main Celestia folder.
* Modified Source files for compilation : http://vincent.gian.club.fr/celestia/ce ... patch3.zip
If you want to check the changes in the code, just make a search for 'Vincent'.
This celestia_patch3 release includes the new Info Script feature and all the previous features of the Celestia_patch2 version.
As usual, any feedback will be very welcome...