Description:
Clean up.
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
@@ -109,39 +109,8 | |||
|
109 | 109 | type = OrganizationType.Cooperative }); |
|
110 | 110 | #endregion |
|
111 | 111 | #region dialog |
|
112 | /* | |
|
113 | 112 | |
|
114 | // this.game.enqueueDialog(DialogTrees.flatten(DialogTrees.testTree, this.grammar)); | |
|
115 | // | |
|
116 | ||
|
117 | var dialogInitial = CreateEntity(); | |
|
118 | // SetComponent(dialogInitial, new VisibilityComponent { visible = true }); | |
|
119 | AddComponent(dialogInitial, new WindowTypeComponent { type = isometricparkfna.Messages.Window.Dialog }); | |
|
120 | AddComponent(dialogInitial, | |
|
121 | new DialogComponent {Dialog = DialogTrees.introTree }); | |
|
122 | AddComponent(dialogInitial, | |
|
123 | new VisibilityComponent{ visible = true}); | |
|
124 | // SendMessage(new SetWindowVisibilityMessage { | |
|
125 | // Entity = dialogInitial, | |
|
126 | // Visibility = true }); | |
|
127 | ||
|
128 | ||
|
129 | var dialogTest = CreateEntity(); | |
|
130 | // SetComponent(dialogTest, new VisibilityComponent { visible = true }); | |
|
131 | AddComponent(dialogTest, new WindowTypeComponent { type = isometricparkfna.Messages.Window.Dialog }); | |
|
132 | AddComponent(dialogTest, | |
|
133 | new DialogComponent {Dialog = DialogTrees.flatten(DialogTrees.testTree, this.grammar)}); | |
|
134 | // SendMessage(new SetWindowVisibilityMessage { | |
|
135 | // Entity = dialogTest, | |
|
136 | // Visibility = true | |
|
137 | // }); | |
|
138 | AddComponent(dialogTest, | |
|
139 | new VisibilityComponent{ visible = true}); | |
|
140 | ||
|
141 | ||
|
142 | */ | |
|
143 | 113 | SendMessage(new SpawnDialogMessage { Path = "IntroGovernor"}); |
|
144 | // SendMessage(new SpawnDialogMessage { Path = "Once"}); | |
|
145 | 114 | #endregion |
|
146 | 115 | this.simulation.Subsidy = message.Difficulty switch { |
|
147 | 116 | DifficultyLevel.Hard => 0M, |
@@ -112,7 +112,7 | |||
|
112 | 112 | { |
|
113 | 113 | |
|
114 | 114 | public static bool hadFocus = false; |
|
115 |
public static |
|
|
115 | public static void RenderDialog(Entity entity, | |
|
116 | 116 | ImGuiWindowBridgeEngine bridgeEngine, ref bool show, ref bool paused, ImFontPtr font, DialogComponent dialogComponent) |
|
117 | 117 | { |
|
118 | 118 | Node<DialogOption> new_child = default; |
@@ -183,12 +183,6 | |||
|
183 | 183 | StyleSets.defaultSet.pop(); |
|
184 | 184 | ImGui.PopFont(); |
|
185 | 185 | } |
|
186 | // bridgeEngine.setDialogMessages.Add(new SetDialogMessage { | |
|
187 | // | |
|
188 | // Entity = entity, | |
|
189 | // newOption = new_child }); | |
|
190 | ||
|
191 | return new_child; | |
|
192 | 186 | } |
|
193 | 187 | } |
|
194 | 188 | } |
You need to be logged in to leave comments.
Login now