From a94b005b764515eb3c99a0f8b826fd595218d404 Mon Sep 17 00:00:00 2001 From: ssdfasd <2156608475@qq.com> Date: Sun, 5 Apr 2026 17:12:43 +0800 Subject: [PATCH] Rename XCUI compatibility host reset helpers --- new_editor/src/Application.cpp | 2 +- new_editor/src/Application.h | 2 +- new_editor/src/ApplicationDefaultShell.cpp | 8 ++++---- new_editor/src/ApplicationLegacyImGui.cpp | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/new_editor/src/Application.cpp b/new_editor/src/Application.cpp index cb905064..5ca32369 100644 --- a/new_editor/src/Application.cpp +++ b/new_editor/src/Application.cpp @@ -228,7 +228,7 @@ int Application::Run(HINSTANCE instance, int nCmdShow) { Frame(); } - ResetLegacyPanels(); + ResetCompatibilityHostPanels(); ShutdownWindowCompositor(); ShutdownRenderer(); resourceManager.Shutdown(); diff --git a/new_editor/src/Application.h b/new_editor/src/Application.h index 592fd122..4f98ad2b 100644 --- a/new_editor/src/Application.h +++ b/new_editor/src/Application.h @@ -414,7 +414,7 @@ private: HostedPreviewOffscreenSurface& previewSurface, const ::XCEngine::Rendering::RenderContext& renderContext, const ::XCEngine::UI::UIDrawData& drawData); - void ResetLegacyPanels(); + void ResetCompatibilityHostPanels(); void ConfigureShellCommandRouter(); ::XCEngine::Editor::XCUIBackend::XCUIInputBridgeFrameDelta DispatchShellShortcuts( const ::XCEngine::Editor::XCUIBackend::XCUIInputBridgeFrameSnapshot& snapshot); diff --git a/new_editor/src/ApplicationDefaultShell.cpp b/new_editor/src/ApplicationDefaultShell.cpp index 5e54805e..4368ac0e 100644 --- a/new_editor/src/ApplicationDefaultShell.cpp +++ b/new_editor/src/ApplicationDefaultShell.cpp @@ -25,13 +25,13 @@ void Application::InitializePanelsForActiveWindowHost() { InitializeNativeShell(); } -void Application::InitializeLegacyImGuiPanels() { +void Application::InitializeCompatibilityHostPanels() { } void Application::ConfigureHostedPreviewPresenters() { } -void Application::ResetLegacyPanels() { +void Application::ResetCompatibilityHostPanels() { m_demoPanel.reset(); m_layoutLabPanel.reset(); } @@ -121,11 +121,11 @@ void Application::InitializeWindowCompositor() { } } -void Application::FrameLegacyImGuiHost() { +void Application::FrameCompatibilityHost() { m_xcuiInputSource.ClearFrameTransients(); } -void Application::RenderLegacyImGuiUiFrame() { +void Application::RenderCompatibilityHostUiFrame() { } void Application::RenderShellChrome() { diff --git a/new_editor/src/ApplicationLegacyImGui.cpp b/new_editor/src/ApplicationLegacyImGui.cpp index 5873ff6f..745c3e10 100644 --- a/new_editor/src/ApplicationLegacyImGui.cpp +++ b/new_editor/src/ApplicationLegacyImGui.cpp @@ -151,7 +151,7 @@ void Application::ConfigureHostedPreviewPresenters() { } } -void Application::ResetLegacyPanels() { +void Application::ResetCompatibilityHostPanels() { m_demoPanel.reset(); m_layoutLabPanel.reset(); }