Clear ADV History presentation on exit

This commit is contained in:
gamer147
2026-07-19 11:32:36 -04:00
parent 792d37ccfe
commit eee9022cfb
7 changed files with 46 additions and 3 deletions

View File

@@ -149,6 +149,12 @@ public sealed class GodotAdvHost : IHost
});
}
public void EndTextHistoryPresentation()
{
lock (_textLock) _historyText.Clear();
_timeline?.Event("history-presentation-end");
}
public IReadOnlyList<AdvTextHistoryRenderBatch> SnapshotRenderedTextHistory()
{
lock (_textLock) return _historyText.Values.OrderBy(batch => batch.LayoutSlot).ToArray();