Add /craftretry

This commit is contained in:
Asriel Camora
2024-11-28 14:13:41 -08:00
parent 8451572a79
commit e86ca2aed4
2 changed files with 11 additions and 1 deletions
+7 -1
View File
@@ -459,7 +459,7 @@ public sealed unsafe class SynthHelper : Window, IDisposable
else
{
if (ImGui.Button("Retry", new(-1, 0)))
CalculateBestMacro();
AttemptRetry();
if (ImGui.IsItemHovered())
ImGuiUtils.TooltipWrapped("Suggest a way to finish the crafting recipe. " +
"Results aren't perfect, and levels of success " +
@@ -482,6 +482,12 @@ public sealed unsafe class SynthHelper : Window, IDisposable
return false;
}
public void AttemptRetry()
{
if (!SolverRunning)
CalculateBestMacro();
}
private void OnStartCrafting(ushort recipeId)
{
var shouldUpdateInput = false;