feat(new_editor): wire project, inspector, and viewport runtime

This commit is contained in:
2026-04-19 00:03:25 +08:00
parent 8257403036
commit a57b322bc7
168 changed files with 14829 additions and 2507 deletions

View File

@@ -6,21 +6,21 @@ namespace XCEngine::UI::Editor::App {
using namespace CompositionInternal;
EditorShellAsset BuildEditorShellAsset(const std::filesystem::path& repoRoot) {
EditorShellAsset BuildEditorApplicationShellAsset(const std::filesystem::path& repoRoot) {
EditorShellAsset asset = {};
asset.screenId = "editor.shell";
asset.captureRootPath = (repoRoot / "new_editor/captures").lexically_normal();
asset.panelRegistry = BuildEditorPanelRegistry();
asset.workspace = BuildEditorWorkspaceModel();
asset.workspace = BuildEditorWorkspaceModel(asset.panelRegistry);
asset.workspaceSession =
BuildDefaultUIEditorWorkspaceSession(asset.panelRegistry, asset.workspace);
asset.shellDefinition = BuildBaseEditorShellDefinition();
asset.shellDefinition = BuildBaseEditorShellDefinition(asset.panelRegistry);
asset.shortcutAsset.commandRegistry = BuildEditorCommandRegistry();
asset.shortcutAsset.bindings = BuildEditorShortcutBindings();
return asset;
}
UIEditorShellInteractionDefinition BuildEditorShellInteractionDefinition(
UIEditorShellInteractionDefinition BuildEditorApplicationShellInteractionDefinition(
const EditorShellAsset& asset,
const UIEditorWorkspaceController& controller,
std::string_view statusText,