editor: bind inspector and console to live runtime state

This commit is contained in:
2026-04-29 18:07:44 +08:00
parent f74503c2a5
commit a99879065c
14 changed files with 262 additions and 71 deletions

View File

@@ -31,7 +31,7 @@ float ResolveTextTop(float rectY, float rectHeight, float fontSize) {
} // namespace
void ConsolePanel::Update(
const EditorSession& session,
const std::vector<EditorConsoleEntry>& entries,
const UIEditorHostedPanelDispatchEntry& dispatchEntry) {
if (!dispatchEntry.mounted) {
m_visible = false;
@@ -42,7 +42,7 @@ void ConsolePanel::Update(
m_visible = true;
m_bounds = dispatchEntry.bounds;
m_entries = &session.consoleEntries;
m_entries = &entries;
}
void ConsolePanel::Append(UIDrawList& drawList) const {