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

Commit

Permalink
fix: add one more config.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Aug 9, 2023
1 parent 36f8236 commit 4f23833
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
1 change: 1 addition & 0 deletions RotationSolver/Localization/ConfigTranslation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ internal static class ConfigTranslation
{
PluginConfigFloat.ActionAhead => LocalizationManager.RightLang.ConfigWindow_Param_ActionAhead,
PluginConfigFloat.MinLastAbilityAdvanced => LocalizationManager.RightLang.ConfigWindow_Param_MinLastAbilityAdvanced,
PluginConfigFloat.CountDownAhead => LocalizationManager.RightLang.ConfigWindow_Param_CountDownAhead,
_ => string.Empty,
};

Expand Down
8 changes: 2 additions & 6 deletions RotationSolver/UI/RotationConfigWindowNew_Config.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using F23.StringSimilarity;
using RotationSolver.Basic.Configuration;
using RotationSolver.Localization;
using RotationSolver.UI.SearchableConfigs;
using RotationSolver.UI.SearchableSettings;

Expand Down Expand Up @@ -46,12 +47,11 @@ private static ISearchable GetParent(ISearchable searchable)
return GetParent(searchable.Parent);
}



private static readonly ISearchable[] _basicSearchable = new ISearchable[]
{
new DragFloatSearchPlugin(PluginConfigFloat.ActionAhead, 0, 0.5f, 0.002f),
new DragFloatSearchPlugin(PluginConfigFloat.MinLastAbilityAdvanced, 0, 0.4f, 0.002f),
new DragFloatSearchPlugin(PluginConfigFloat.CountDownAhead, 0.5f, 0.7f, 0.002f),
};
private static void DrawBasic()
{
Expand All @@ -63,7 +63,6 @@ private static void DrawBasic()

private static readonly ISearchable[] _uiSearchable = new ISearchable[]
{
new DragFloatSearchPlugin(PluginConfigFloat.ActionAhead, 0, 0.5f, 0.002f),
};
private static void DrawUI()
{
Expand All @@ -75,7 +74,6 @@ private static void DrawUI()

private static readonly ISearchable[] _autoSearchable = new ISearchable[]
{
new DragFloatSearchPlugin(PluginConfigFloat.ActionAhead, 0, 0.5f, 0.002f),
};
private static void DrawAuto()
{
Expand All @@ -87,7 +85,6 @@ private static void DrawAuto()

private static readonly ISearchable[] _targetSearchable = new ISearchable[]
{
new DragFloatSearchPlugin(PluginConfigFloat.ActionAhead, 0, 0.5f, 0.002f),
};
private static void DrawTarget()
{
Expand All @@ -99,7 +96,6 @@ private static void DrawTarget()

private static readonly ISearchable[] _extraSearchable = new ISearchable[]
{
new DragFloatSearchPlugin(PluginConfigFloat.ActionAhead, 0, 0.5f, 0.002f),
};
private static void DrawExtra()
{
Expand Down
4 changes: 2 additions & 2 deletions RotationSolver/UI/RotationConfigWindow_Param.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ private void DrawParamBasic()
//DrawFloatNumber(LocalizationManager.RightLang.ConfigWindow_Param_MinLastAbilityAdvanced,
// ref Service.Config.MinLastAbilityAdvanced, Service.Default.MinLastAbilityAdvanced, max: 0.4f);

DrawFloatNumber(LocalizationManager.RightLang.ConfigWindow_Param_CountDownAhead,
ref Service.Config.CountDownAhead, Service.Default.CountDownAhead, min: 0.5f, max: 0.7f);
//DrawFloatNumber(LocalizationManager.RightLang.ConfigWindow_Param_CountDownAhead,
// ref Service.Config.CountDownAhead, Service.Default.CountDownAhead, min: 0.5f, max: 0.7f);

DrawFloatNumber(LocalizationManager.RightLang.ConfigWindow_Param_SpecialDuration,
ref Service.Config.SpecialDuration, Service.Default.SpecialDuration, speed: 0.02f, min: 1, max: 20);
Expand Down

0 comments on commit 4f23833

Please sign in to comment.