mirror of
https://github.com/denglihong2007/CRSim
synced 2026-08-10 11:36:07 +08:00
revert: 回滚 feat: 增加时间限制
feat: 增加时间限制(0.25-1024)
This commit is contained in:
@@ -38,14 +38,6 @@ namespace CRSim.ScreenSimulator.Views
|
||||
_timeService.Speed /= 2;
|
||||
SpeedText.Text = _timeService.Speed.ToString() + "x";
|
||||
}
|
||||
else
|
||||
{
|
||||
if (_timeService.Speed == 0.25)
|
||||
{
|
||||
_timeService.Speed = -1;
|
||||
SpeedText.Text = _timeService.Speed.ToString() + "x";
|
||||
}
|
||||
}
|
||||
}
|
||||
private void IncreaseSpeed(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
@@ -54,11 +46,6 @@ namespace CRSim.ScreenSimulator.Views
|
||||
_timeService.Speed *= 2;
|
||||
SpeedText.Text = _timeService.Speed.ToString() + "x";
|
||||
}
|
||||
if (_timeService.Speed == -1)
|
||||
{
|
||||
_timeService.Speed = 0.25;
|
||||
SpeedText.Text = _timeService.Speed.ToString() + "x";
|
||||
}
|
||||
}
|
||||
|
||||
private void Close(object sender, MouseButtonEventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user