forked from liza/Workshoppa
Fallback options
This commit is contained in:
parent
36f6200f62
commit
9abcdaaa82
@ -14,7 +14,10 @@ partial class WorkshopPlugin
|
|||||||
private void SelectCraftBranch()
|
private void SelectCraftBranch()
|
||||||
{
|
{
|
||||||
if (SelectSelectString("contrib", 0, s => s.StartsWith("Contribute materials.")))
|
if (SelectSelectString("contrib", 0, s => s.StartsWith("Contribute materials.")))
|
||||||
|
{
|
||||||
CurrentStage = Stage.ContributeMaterials;
|
CurrentStage = Stage.ContributeMaterials;
|
||||||
|
_continueAt = DateTime.Now.AddSeconds(1);
|
||||||
|
}
|
||||||
else if (SelectSelectString("advance", 0, s => s.StartsWith("Advance to the next phase of production.")))
|
else if (SelectSelectString("advance", 0, s => s.StartsWith("Advance to the next phase of production.")))
|
||||||
{
|
{
|
||||||
PluginLog.Information("Phase is complete");
|
PluginLog.Information("Phase is complete");
|
||||||
@ -73,6 +76,7 @@ partial class WorkshopPlugin
|
|||||||
};
|
};
|
||||||
addonMaterialDelivery->FireCallback(4, contributeMaterial);
|
addonMaterialDelivery->FireCallback(4, contributeMaterial);
|
||||||
CurrentStage = Stage.ConfirmMaterialDelivery;
|
CurrentStage = Stage.ConfirmMaterialDelivery;
|
||||||
|
_continueAt = DateTime.Now.AddSeconds(0.5);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -106,6 +110,11 @@ partial class WorkshopPlugin
|
|||||||
_continueAt = DateTime.Now.AddSeconds(1);
|
_continueAt = DateTime.Now.AddSeconds(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (DateTime.Now > _continueAt.AddSeconds(20))
|
||||||
|
{
|
||||||
|
PluginLog.Warning("No confirmation dialog, falling back to previous stage");
|
||||||
|
CurrentStage = Stage.ContributeMaterials;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ConfirmCollectProduct()
|
private void ConfirmCollectProduct()
|
||||||
|
Loading…
Reference in New Issue
Block a user