Refactor editor workspace panel runtime boundary

This commit is contained in:
2026-04-27 01:58:23 +08:00
parent 672d3f75d3
commit 31df10ffb6
15 changed files with 851 additions and 345 deletions

View File

@@ -1,10 +1,6 @@
#include "Composition/EditorShellDrawComposer.h"
#include "Features/Console/ConsolePanel.h"
#include "Features/Hierarchy/HierarchyPanel.h"
#include "Features/Inspector/InspectorPanel.h"
#include "Features/Project/ProjectPanel.h"
#include "Features/Scene/SceneViewportFeature.h"
#include "Features/EditorWorkspacePanelRegistry.h"
#include "Rendering/Assets/BuiltInIcons.h"
#include <XCEditor/Foundation/UIEditorTheme.h>
@@ -146,26 +142,7 @@ void EditorShellDrawComposer::Append(
palette.shellPalette,
metrics.shellMetrics);
});
AppendDrawPacket(
drawData,
"XCEditorPanel.Console",
[&](UIDrawList& drawList) { context.consolePanel.Append(drawList); });
AppendDrawPacket(
drawData,
"XCEditorPanel.Hierarchy",
[&](UIDrawList& drawList) { context.hierarchyPanel.Append(drawList); });
AppendDrawPacket(
drawData,
"XCEditorPanel.Inspector",
[&](UIDrawList& drawList) { context.inspectorPanel.Append(drawList); });
AppendDrawPacket(
drawData,
"XCEditorPanel.Project",
[&](UIDrawList& drawList) { context.projectPanel.Append(drawList); });
AppendDrawPacket(
drawData,
"XCEditorPanel.SceneOverlay",
[&](UIDrawList& drawList) { context.sceneViewportFeature.Append(drawList); });
context.workspacePanels.AppendDrawPackets(drawData);
AppendDrawPacket(
drawData,
"XCEditorShell.Compose.Overlay",