2026-04-27 19:16:08 +08:00
|
|
|
#include "EditorUtilityWindowRegistry.h"
|
2026-04-27 15:37:39 +08:00
|
|
|
|
2026-04-27 19:16:08 +08:00
|
|
|
#include "ColorPicker/ColorPickerPanel.h"
|
|
|
|
|
#include "Inspector/AddComponentPanel.h"
|
2026-04-27 15:37:39 +08:00
|
|
|
|
|
|
|
|
namespace XCEngine::UI::Editor::App {
|
|
|
|
|
|
|
|
|
|
std::unique_ptr<EditorUtilityWindowPanel> CreateEditorUtilityWindowPanel(
|
|
|
|
|
EditorUtilityWindowKind kind) {
|
|
|
|
|
switch (kind) {
|
|
|
|
|
case EditorUtilityWindowKind::ColorPicker:
|
|
|
|
|
return std::make_unique<ColorPickerPanel>();
|
|
|
|
|
case EditorUtilityWindowKind::AddComponent:
|
|
|
|
|
return std::make_unique<AddComponentPanel>();
|
|
|
|
|
case EditorUtilityWindowKind::None:
|
|
|
|
|
default:
|
|
|
|
|
return nullptr;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} // namespace XCEngine::UI::Editor::App
|
|
|
|
|
|