Update condition for reverse time text. Update speed text when changing rate using arrow keys.
This commit is contained in:
Родитель
8a1ab45287
Коммит
0b5186c235
|
@ -6942,9 +6942,17 @@ namespace TerraViewer
|
|||
break;
|
||||
case Keys.F:
|
||||
SpaceTimeController.Faster();
|
||||
if (viewPane != null)
|
||||
{
|
||||
viewPane.UpdateSpeed();
|
||||
}
|
||||
break;
|
||||
case Keys.S:
|
||||
SpaceTimeController.Slower();
|
||||
if (viewPane != null)
|
||||
{
|
||||
viewPane.UpdateSpeed();
|
||||
}
|
||||
break;
|
||||
case Keys.H:
|
||||
// turn friction on and off
|
||||
|
|
|
@ -227,14 +227,14 @@ namespace TerraViewer
|
|||
UpdateSpeed();
|
||||
}
|
||||
|
||||
private void UpdateSpeed()
|
||||
public void UpdateSpeed()
|
||||
{
|
||||
|
||||
if (SpaceTimeController.TimeRate == 1.0)
|
||||
{
|
||||
TimeMode.Text = Language.GetLocalizedText(513, "Real Time");
|
||||
}
|
||||
else if (SpaceTimeController.TimeRate == -2.0)
|
||||
else if (SpaceTimeController.TimeRate == -1.0)
|
||||
{
|
||||
TimeMode.Text = Language.GetLocalizedText(521, "Reverse Time");
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче