From d1cb0c874b96a849bc3fb414bbe4d6d3b5c026bd Mon Sep 17 00:00:00 2001 From: ssdfasd <2156608475@qq.com> Date: Sun, 5 Apr 2026 05:58:05 +0800 Subject: [PATCH] Enhance XCUI demo text editing and host bridge --- Assets/XCUI/NewEditor/Demo/View.xcui | 9 + docs/plan/XCUI_Phase_Status_2026-04-05.md | 17 +- editor/src/Platform/D3D12WindowRenderer.h | 8 +- editor/src/UI/ImGuiBackendBridge.h | 59 +++++ new_editor/resources/xcui_demo_view.xcui | 52 ++++- .../src/XCUIBackend/XCUIDemoRuntime.cpp | 220 +++++++++++++++++- tests/NewEditor/test_xcui_demo_runtime.cpp | 46 +++- tests/editor/CMakeLists.txt | 2 + tests/editor/test_editor_console_sink.cpp | 22 ++ .../editor/test_imgui_backend_bridge_api.cpp | 40 ++++ tests/editor/test_window_renderer_api.cpp | 28 +++ 11 files changed, 479 insertions(+), 24 deletions(-) create mode 100644 tests/editor/test_editor_console_sink.cpp create mode 100644 tests/editor/test_imgui_backend_bridge_api.cpp create mode 100644 tests/editor/test_window_renderer_api.cpp diff --git a/Assets/XCUI/NewEditor/Demo/View.xcui b/Assets/XCUI/NewEditor/Demo/View.xcui index 7b515660..007a3540 100644 --- a/Assets/XCUI/NewEditor/Demo/View.xcui +++ b/Assets/XCUI/NewEditor/Demo/View.xcui @@ -50,6 +50,10 @@ min-width="240" placeholder="Type a command or note for XCUI..." value="" /> + @@ -61,8 +65,13 @@ width="stretch" min-width="240" rows="4" + show-line-numbers="true" placeholder="Write multiline notes, prompts, or todos for the current screen..." value="" /> +