RPG map editor test advances dialogs on RPG Plus

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
cthangoverandClaude Opus 5.5 committed 2026-10-24 10:01:11 +02:00
1 parent 1622a2fc51
commit 9325bde61b
2 files changed
+9 -3

No files matched your search

+8 -2
View File
@@ -84,14 +84,20 @@ namespace Cthangover.Tools.RpgEditor.Tests
switch (step)
{
case 0:
if (!Boot.IsReady || RpgWorldHost.Current?.View == null)
if (!Boot.IsReady || string.IsNullOrEmpty(GetTree().Root.GetNodeOrNull<SceneManager>("SceneManager")?.CurrentSceneName))
return;
// Dialogs first: the rpg_plus prologue runs before any map is shown.
var box = RpgInput.FindDialogBox();
if (box != null && box.IsRunning)
{
box.NextAction();
if (box.IsWaitingAnswer)
box.TrySelectVariant(0);
else
box.NextAction();
return;
}
if (RpgWorldHost.Current?.View == null)
return;
window = ToolWindow.Open<RpgMapEditorWindow>();
step++;
return;