23 lines
652 B
C++
23 lines
652 B
C++
#include "Features/EditorUtilityWindowRegistry.h"
|
|
|
|
#include "Features/ColorPicker/ColorPickerPanel.h"
|
|
#include "Features/Inspector/AddComponentPanel.h"
|
|
|
|
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
|
|
|