|
12 | 12 |
|
13 | 13 | #include "UI/QComponentEntityEditorMainWindow.h"
|
14 | 14 | #include "UI/QComponentEntityEditorOutlinerWindow.h"
|
15 |
| -#include "UI/QComponentLevelEntityEditorMainWindow.h" |
16 | 15 | #include "UI/ComponentPalette/ComponentPaletteSettings.h"
|
17 | 16 |
|
18 | 17 | #include <AzCore/Component/ComponentApplicationBus.h>
|
@@ -155,56 +154,19 @@ ComponentEntityEditorPlugin::ComponentEntityEditorPlugin([[maybe_unused]] IEdito
|
155 | 154 | LyViewPane::CategoryTools,
|
156 | 155 | pinnedInspectorOptions);
|
157 | 156 |
|
158 |
| - bool prefabSystemEnabled = false; |
159 |
| - AzFramework::ApplicationRequests::Bus::BroadcastResult(prefabSystemEnabled, &AzFramework::ApplicationRequests::IsPrefabSystemEnabled); |
| 157 | + // Add the Outliner to the Tools Menu |
| 158 | + ViewPaneOptions outlinerOptions; |
| 159 | + outlinerOptions.canHaveMultipleInstances = true; |
| 160 | + outlinerOptions.preferedDockingArea = Qt::LeftDockWidgetArea; |
| 161 | + // Override the default behavior for component mode enter/exit and imgui enter/exit |
| 162 | + // so that we don't automatically disable and enable the Entity Outliner. This will be handled separately. |
| 163 | + outlinerOptions.isDisabledInComponentMode = false; |
| 164 | + outlinerOptions.isDisabledInImGuiMode = false; |
160 | 165 |
|
161 |
| - if (prefabSystemEnabled) |
162 |
| - { |
163 |
| - // Add the new Outliner to the Tools Menu |
164 |
| - |
165 |
| - ViewPaneOptions outlinerOptions; |
166 |
| - outlinerOptions.canHaveMultipleInstances = true; |
167 |
| - outlinerOptions.preferedDockingArea = Qt::LeftDockWidgetArea; |
168 |
| - // Override the default behavior for component mode enter/exit and imgui enter/exit |
169 |
| - // so that we don't automatically disable and enable the Entity Outliner. This will be handled separately. |
170 |
| - outlinerOptions.isDisabledInComponentMode = false; |
171 |
| - outlinerOptions.isDisabledInImGuiMode = false; |
172 |
| - |
173 |
| - RegisterViewPane<QEntityOutlinerWindow>( |
174 |
| - LyViewPane::EntityOutliner, |
175 |
| - LyViewPane::CategoryTools, |
176 |
| - outlinerOptions); |
177 |
| - } |
178 |
| - else |
179 |
| - { |
180 |
| - ViewPaneOptions levelInspectorOptions; |
181 |
| - levelInspectorOptions.canHaveMultipleInstances = false; |
182 |
| - levelInspectorOptions.preferedDockingArea = Qt::RightDockWidgetArea; |
183 |
| - levelInspectorOptions.paneRect = QRect(50, 50, 400, 700); |
184 |
| - RegisterViewPane<QComponentLevelEntityEditorInspectorWindow>( |
185 |
| - LyViewPane::LevelInspector, LyViewPane::CategoryTools, levelInspectorOptions); |
186 |
| - |
187 |
| - // Add the Legacy Outliner to the Tools Menu |
188 |
| - ViewPaneOptions outlinerOptions; |
189 |
| - outlinerOptions.canHaveMultipleInstances = true; |
190 |
| - outlinerOptions.preferedDockingArea = Qt::LeftDockWidgetArea; |
191 |
| - // Override the default behavior for component mode enter/exit and imgui enter/exit |
192 |
| - // so that we don't automatically disable and enable the Entity Outliner. This will be handled separately. |
193 |
| - outlinerOptions.isDisabledInComponentMode = false; |
194 |
| - outlinerOptions.isDisabledInImGuiMode = false; |
195 |
| - |
196 |
| - // this pane was originally introduced with this name, so layout settings are all saved with that name, despite the preview label being removed. |
197 |
| - outlinerOptions.saveKeyName = "Entity Outliner (PREVIEW)"; |
198 |
| - |
199 |
| - RegisterViewPane<QComponentEntityEditorOutlinerWindow>( |
200 |
| - LyViewPane::EntityOutliner, |
201 |
| - LyViewPane::CategoryTools, |
202 |
| - outlinerOptions); |
203 |
| - |
204 |
| - AzToolsFramework::ViewPaneOptions options; |
205 |
| - options.preferedDockingArea = Qt::NoDockWidgetArea; |
206 |
| - RegisterViewPane<SliceRelationshipWidget>(LyViewPane::SliceRelationships, LyViewPane::CategoryTools, options); |
207 |
| - } |
| 166 | + RegisterViewPane<QEntityOutlinerWindow>( |
| 167 | + LyViewPane::EntityOutliner, |
| 168 | + LyViewPane::CategoryTools, |
| 169 | + outlinerOptions); |
208 | 170 |
|
209 | 171 | ComponentEntityEditorPluginInternal::RegisterSandboxObjects();
|
210 | 172 |
|
|
0 commit comments