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;
|
break;
|
||||||
case Keys.F:
|
case Keys.F:
|
||||||
SpaceTimeController.Faster();
|
SpaceTimeController.Faster();
|
||||||
|
if (viewPane != null)
|
||||||
|
{
|
||||||
|
viewPane.UpdateSpeed();
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case Keys.S:
|
case Keys.S:
|
||||||
SpaceTimeController.Slower();
|
SpaceTimeController.Slower();
|
||||||
|
if (viewPane != null)
|
||||||
|
{
|
||||||
|
viewPane.UpdateSpeed();
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case Keys.H:
|
case Keys.H:
|
||||||
// turn friction on and off
|
// turn friction on and off
|
||||||
|
|
|
@ -227,14 +227,14 @@ namespace TerraViewer
|
||||||
UpdateSpeed();
|
UpdateSpeed();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void UpdateSpeed()
|
public void UpdateSpeed()
|
||||||
{
|
{
|
||||||
|
|
||||||
if (SpaceTimeController.TimeRate == 1.0)
|
if (SpaceTimeController.TimeRate == 1.0)
|
||||||
{
|
{
|
||||||
TimeMode.Text = Language.GetLocalizedText(513, "Real Time");
|
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");
|
TimeMode.Text = Language.GetLocalizedText(521, "Reverse Time");
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче