Add Render Waiting Visualization

This commit is contained in:
copecone committed 2026-05-22 21:44:42 +09:00
1 parent c16fe25e7d
commit f807eae382
2 files changed
+15 -9

No files matched your search

+10 -2
View File
@@ -17,8 +17,16 @@ namespace ADOFAIRenderer.Patch.ClassPatch
{
if (!RenderMod.IsRendering) return;
___txt.text = "Rendering";
if (RenderManager.Countdown > 0) ___txt.text += $" in {RenderManager.Countdown}..";
___txt.text = "Rendering...";
if (RenderManager.Countdown > 0) ___txt.text = $"Rendering in {RenderManager.Countdown}..";
if (RenderManager.WonFrame != -1)
{
var elapsedFrames = RenderManager.FrameCount - RenderManager.WonFrame;
var remainingTime = RenderManager.Configuration.EndWaitTime - elapsedFrames / RenderManager.Configuration.TargetFPS;
if (remainingTime < 0) remainingTime = 0;
___txt.text += $"\nWaiting for {remainingTime:F1}s...";
}
___txt.color = ___defaultColor;
}