Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
fix: remove noise time, using clicking delay instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Apr 20, 2023
1 parent d048383 commit 435d44c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
4 changes: 2 additions & 2 deletions RotationSolver/Commands/RSCommands_Actions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ static async void PulseSimulation(uint id)
Service.Config.KeyBoardNoiseMax); i++)
{
PreviewUpdater.PulseActionBar(id);
var time = Service.Config.KeyBoardNoiseTimeMin +
new Random().NextDouble() * (Service.Config.KeyBoardNoiseTimeMax - Service.Config.KeyBoardNoiseTimeMin);
var time = Service.Config.ClickingDelayMin +
new Random().NextDouble() * (Service.Config.ClickingDelayMax - Service.Config.ClickingDelayMin);
await Task.Delay((int)(time * 1000));
}
}
Expand Down
1 change: 0 additions & 1 deletion RotationSolver/Localization/Strings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ internal partial class Strings
public string ConfigWindow_Param_KeyBoardNoise { get; set; } = "Simulate the effect of pressing";
public string ConfigWindow_Param_KeyBoardNoiseBefore { get; set; } = "Simulate before action cast";
public string ConfigWindow_Param_KeyBoardNoiseTimes { get; set; } = "Effect times";
public string ConfigWindow_Param_KeyBoardNoiseTime { get; set; } = "Effect interval";
public string ConfigWindow_Param_VoiceVolume { get; set; } = "Voice volume";
public string ConfigWindow_Param_ToastPositional { get; set; } = "Hint positional anticipation by Toast";
public string ConfigWindow_Param_SayPositional { get; set; } = "Hint positional anticipation by shouting";
Expand Down
4 changes: 0 additions & 4 deletions RotationSolver/UI/RotationConfigWindow_Param.cs
Original file line number Diff line number Diff line change
Expand Up @@ -234,10 +234,6 @@ private void DrawParamDisplay()
ref Service.Config.KeyBoardNoiseMin, ref Service.Config.KeyBoardNoiseMax,
Service.Default.KeyBoardNoiseMin, Service.Default.KeyBoardNoiseMax);

DrawRangedFloat(LocalizationManager.RightLang.ConfigWindow_Param_KeyBoardNoiseTime,
ref Service.Config.KeyBoardNoiseTimeMin, ref Service.Config.KeyBoardNoiseTimeMax,
Service.Default.KeyBoardNoiseTimeMin, Service.Default.KeyBoardNoiseTimeMax);

ImGui.Unindent();
}

Expand Down

0 comments on commit 435d44c

Please sign in to comment.