diff --git a/isometric-park-fna/Engines/Spawners/GameSpawner.cs b/isometric-park-fna/Engines/Spawners/GameSpawner.cs --- a/isometric-park-fna/Engines/Spawners/GameSpawner.cs +++ b/isometric-park-fna/Engines/Spawners/GameSpawner.cs @@ -109,39 +109,8 @@ type = OrganizationType.Cooperative }); #endregion #region dialog - /* - // this.game.enqueueDialog(DialogTrees.flatten(DialogTrees.testTree, this.grammar)); - // - - var dialogInitial = CreateEntity(); - // SetComponent(dialogInitial, new VisibilityComponent { visible = true }); - AddComponent(dialogInitial, new WindowTypeComponent { type = isometricparkfna.Messages.Window.Dialog }); - AddComponent(dialogInitial, - new DialogComponent {Dialog = DialogTrees.introTree }); - AddComponent(dialogInitial, - new VisibilityComponent{ visible = true}); - // SendMessage(new SetWindowVisibilityMessage { - // Entity = dialogInitial, - // Visibility = true }); - - - var dialogTest = CreateEntity(); - // SetComponent(dialogTest, new VisibilityComponent { visible = true }); - AddComponent(dialogTest, new WindowTypeComponent { type = isometricparkfna.Messages.Window.Dialog }); - AddComponent(dialogTest, - new DialogComponent {Dialog = DialogTrees.flatten(DialogTrees.testTree, this.grammar)}); - // SendMessage(new SetWindowVisibilityMessage { - // Entity = dialogTest, - // Visibility = true - // }); - AddComponent(dialogTest, - new VisibilityComponent{ visible = true}); - - -*/ SendMessage(new SpawnDialogMessage { Path = "IntroGovernor"}); - // SendMessage(new SpawnDialogMessage { Path = "Once"}); #endregion this.simulation.Subsidy = message.Difficulty switch { DifficultyLevel.Hard => 0M, diff --git a/isometric-park-fna/UI/Dialog.cs b/isometric-park-fna/UI/Dialog.cs --- a/isometric-park-fna/UI/Dialog.cs +++ b/isometric-park-fna/UI/Dialog.cs @@ -112,7 +112,7 @@ { public static bool hadFocus = false; - public static Node RenderDialog(Entity entity, + public static void RenderDialog(Entity entity, ImGuiWindowBridgeEngine bridgeEngine, ref bool show, ref bool paused, ImFontPtr font, DialogComponent dialogComponent) { Node new_child = default; @@ -183,12 +183,6 @@ StyleSets.defaultSet.pop(); ImGui.PopFont(); } - // bridgeEngine.setDialogMessages.Add(new SetDialogMessage { - // - // Entity = entity, - // newOption = new_child }); - - return new_child; } } }