Refine editor frame services seam
This commit is contained in:
@@ -2,16 +2,20 @@
|
||||
|
||||
#include "ColorPicker/ColorPickerPanel.h"
|
||||
#include "Inspector/AddComponentPanel.h"
|
||||
#include "Scene/EditorSceneRuntime.h"
|
||||
#include "State/EditorColorPickerToolState.h"
|
||||
|
||||
namespace XCEngine::UI::Editor::App {
|
||||
|
||||
std::unique_ptr<EditorUtilityWindowPanel> CreateEditorUtilityWindowPanel(
|
||||
EditorUtilityWindowKind kind) {
|
||||
EditorUtilityWindowKind kind,
|
||||
EditorColorPickerToolState& colorPickerToolState,
|
||||
EditorSceneRuntime& sceneRuntime) {
|
||||
switch (kind) {
|
||||
case EditorUtilityWindowKind::ColorPicker:
|
||||
return std::make_unique<ColorPickerPanel>();
|
||||
return std::make_unique<ColorPickerPanel>(colorPickerToolState);
|
||||
case EditorUtilityWindowKind::AddComponent:
|
||||
return std::make_unique<AddComponentPanel>();
|
||||
return std::make_unique<AddComponentPanel>(sceneRuntime);
|
||||
case EditorUtilityWindowKind::None:
|
||||
default:
|
||||
return nullptr;
|
||||
|
||||
Reference in New Issue
Block a user