Added more/fewer stars menu options.

ver1_5_1
Chris Laurel 2001-05-18 02:39:28 +00:00
parent f23de1d014
commit 64c85942f4
1 changed files with 13 additions and 1 deletions

View File

@ -45,7 +45,7 @@
//-----------------
char AppName[] = "Celestia";
static string welcomeMessage1("Welcome to Celestia 1.07");
static string welcomeMessage1("Welcome to Celestia 1.0.10");
static string welcomeMessage2("Press D to run demo");
@ -1032,6 +1032,8 @@ void RenderOverlay()
double timeScale = sim->getTimeScale();
if (abs(timeScale - 1) < 1e-6)
*overlay << "Real time";
else if (abs(timeScale) == 0.0f)
*overlay << "Time stopped";
else if (abs(timeScale) > 1.0)
*overlay << timeScale << "x faster";
else
@ -1781,6 +1783,16 @@ LRESULT CALLBACK MainWindowProc(HWND hWnd,
ToggleRenderFlag(ID_RENDER_SHOWGALAXIES, Renderer::ShowGalaxies);
break;
case ID_RENDER_MORESTARS:
if (sim->getFaintestVisible() < 8.0f)
SetFaintest(sim->getFaintestVisible() + 0.5f);
break;
case ID_RENDER_FEWERSTARS:
if (sim->getFaintestVisible() > 1.0f)
SetFaintest(sim->getFaintestVisible() - 0.5f);
break;
case ID_RENDER_AMBIENTLIGHT_NONE:
CheckMenuItem(menuBar, ID_RENDER_AMBIENTLIGHT_NONE, MF_CHECKED);
CheckMenuItem(menuBar, ID_RENDER_AMBIENTLIGHT_LOW, MF_UNCHECKED);