editor: bind inspector and console to live runtime state
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user