Skip to content

Commit

Permalink
AutoHook 2.4.2.2 [PUSH]
Browse files Browse the repository at this point in the history
#65 Fix
  • Loading branch information
InitialDet committed Jan 30, 2023
1 parent 87b8342 commit c77375a
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 17 deletions.
2 changes: 1 addition & 1 deletion AutoHook/AutoHook.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Authors>Det</Authors>
<Version>2.4.2.1</Version>
<Version>2.4.2.2</Version>
<Description>Auto hooks for you</Description>
<PackageProjectUrl>https://github.com/InitialDet/AutoHook</PackageProjectUrl>
<Configurations>Release;Debug</Configurations>
Expand Down
34 changes: 19 additions & 15 deletions AutoHook/Ui/TabBaseConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
5 changes: 4 additions & 1 deletion AutoHook/Ui/TabGeneral.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down

0 comments on commit c77375a

Please sign in to comment.