28 lines
743 B
C++
28 lines
743 B
C++
#pragma once
|
|
|
|
#include "Core/ProductEditorSession.h"
|
|
|
|
#include <XCEditor/Shell/UIEditorPanelContentHost.h>
|
|
|
|
#include <XCEngine/UI/DrawData.h>
|
|
|
|
namespace XCEngine::UI::Editor::App {
|
|
|
|
class ProductConsolePanel {
|
|
public:
|
|
void Update(
|
|
const ProductEditorSession& session,
|
|
const UIEditorPanelContentHostFrame& contentHostFrame);
|
|
void Append(::XCEngine::UI::UIDrawList& drawList) const;
|
|
|
|
private:
|
|
const UIEditorPanelContentHostPanelState* FindMountedConsolePanel(
|
|
const UIEditorPanelContentHostFrame& contentHostFrame) const;
|
|
|
|
bool m_visible = false;
|
|
::XCEngine::UI::UIRect m_bounds = {};
|
|
const std::vector<ProductEditorConsoleEntry>* m_entries = nullptr;
|
|
};
|
|
|
|
} // namespace XCEngine::UI::Editor::App
|