diff --git a/AutoHook/AutoHook.csproj b/AutoHook/AutoHook.csproj index 87dee13..daebdae 100644 --- a/AutoHook/AutoHook.csproj +++ b/AutoHook/AutoHook.csproj @@ -2,7 +2,7 @@ Det - 2.4.2.1 + 2.4.2.2 Auto hooks for you https://github.com/InitialDet/AutoHook Release;Debug diff --git a/AutoHook/Ui/TabBaseConfig.cs b/AutoHook/Ui/TabBaseConfig.cs index 50358bb..f945ae8 100644 --- a/AutoHook/Ui/TabBaseConfig.cs +++ b/AutoHook/Ui/TabBaseConfig.cs @@ -143,42 +143,46 @@ public void DrawChumMinMaxTime(BaitConfig cfg) ImGui.Separator(); ImGui.SetNextItemWidth(100 * ImGuiHelpers.GlobalScale); - if (ImGui.InputDouble("Max. Wait", ref cfg.MaxChumTimeDelay, .1, 1, "%.1f%")) + if (ImGui.InputDouble("Min. Wait", ref cfg.MinChumTimeDelay, .1, 1, "%.1f%")) { - switch (cfg.MaxTimeDelay) + switch (cfg.MinTimeDelay) { - case 0.1: - cfg.MaxTimeDelay = 2; - break; case <= 0: - case <= 1.9: //This makes the option turn off if delay = 2 seconds when clicking the minus. - cfg.MaxTimeDelay = 0; + cfg.MinTimeDelay = 0; break; case > 99: - cfg.MaxTimeDelay = 99; + cfg.MinTimeDelay = 99; break; } } + ImGui.SameLine(); - ImGuiComponents.HelpMarker("Hook will be used after the defined amount of time has passed\nMin. time: 2s (because of animation lock)\n\nSet Zero (0) to disable, and dont make this lower than the Min. Wait"); + ImGuiComponents.HelpMarker("Hook will NOT be used until the minimum time has passed.\n\nEx: If you set the number as 14 and something bites after 8 seconds, the fish will not to be hooked\n\nSet Zero (0) to disable"); + ImGui.SetNextItemWidth(100 * ImGuiHelpers.GlobalScale); - if (ImGui.InputDouble("Min. Wait", ref cfg.MinChumTimeDelay, .1, 1, "%.1f%")) + if (ImGui.InputDouble("Max. Wait", ref cfg.MaxChumTimeDelay, .1, 1, "%.1f%")) { - switch (cfg.MinTimeDelay) + switch (cfg.MaxTimeDelay) { + case 0.1: + cfg.MaxTimeDelay = 2; + break; case <= 0: - cfg.MinTimeDelay = 0; + case <= 1.9: //This makes the option turn off if delay = 2 seconds when clicking the minus. + cfg.MaxTimeDelay = 0; break; case > 99: - cfg.MinTimeDelay = 99; + cfg.MaxTimeDelay = 99; break; } } - + ImGui.SameLine(); - ImGuiComponents.HelpMarker("Hook will NOT be used until the minimum time has passed.\n\nEx: If you set the number as 14 and something bites after 8 seconds, the fish will not to be hooked\n\nSet Zero (0) to disable"); + + ImGuiComponents.HelpMarker("Hook will be used after the defined amount of time has passed\nMin. time: 2s (because of animation lock)\n\nSet Zero (0) to disable, and dont make this lower than the Min. Wait"); + ImGui.EndPopup(); } diff --git a/AutoHook/Ui/TabGeneral.cs b/AutoHook/Ui/TabGeneral.cs index 71bbf1d..4cf8d9a 100644 --- a/AutoHook/Ui/TabGeneral.cs +++ b/AutoHook/Ui/TabGeneral.cs @@ -146,11 +146,14 @@ private void DrawChangelog() ImGui.Separator(); ImGui.TextWrapped("2.4.2.1"); ImGui.TextWrapped("- Gig hitbox enabled by default"); + ImGui.Separator(); ImGui.Spacing(); + + ImGui.TextWrapped("2.4.2.2"); + ImGui.TextWrapped("- Fixed order of Chum Timer Min/Max fields"); ImGui.Separator(); ImGui.Spacing(); - if (ImGui.BeginChild("old_versions", new Vector2(0, 150), true)) { if (ImGui.TreeNode("2.4.1.0"))