move debug cursor in runtime

This commit is contained in:
iisaev committed 2026-10-19 17:39:30 +03:00
1 parent 5200db1562
commit 9f86bdbb0c
2 files changed
+45

No files matched your search

+20
View File
@@ -308,6 +308,26 @@ namespace Cthangover.Mods.Dialog
ScheduleWaitTimer();
}
/// <summary>
/// Moves a running dialog to another action and holds it there
/// (<see cref="DialogRuntime.MoveTo"/>): a pending wait timer and an open
/// answer box are dropped, since they belong to the action left behind;
/// the shown text stays until the new action replaces it.
/// </summary>
public bool MoveTo(int queueIndex)
{
if (!IsRunning)
return false;
ClearWaitTimer();
if (answerBox != null)
{
answerBox.Hide();
answerBox = null;
}
return Runtime.MoveTo(queueIndex);
}
/// <summary>
/// Stops the running dialog without finishing it (<see cref="DialogRuntime.Abort"/>)
/// and frees the box for another queue: closes the answer box, hides