Changed overlay text for solar system bodies so that all object names are

shown.
ver1_6_1
Chris Laurel 2008-07-19 22:00:28 +00:00
parent bd334ed4e5
commit de9dedc9af
1 changed files with 9 additions and 1 deletions

View File

@ -3654,8 +3654,16 @@ void CelestiaCore::renderOverlay()
case Selection::Type_Body:
{
// Show all names for the body
overlay->setFont(titleFont);
*overlay << sel.body()->getName(true).c_str();
const vector<string>& names = sel.body()->getNames();
for (vector<string>::const_iterator iter = names.begin(); iter != names.end(); iter++)
{
if (iter != names.begin())
*overlay << " / ";
*overlay << *iter;
}
overlay->setFont(font);
*overlay << '\n';
displayPlanetInfo(*overlay,