refactor(new_editor): split utility window semantics from workspace
This commit is contained in:
@@ -266,23 +266,6 @@ UIEditorPanelDescriptor BuildHostedContentPanelDescriptor(
|
||||
return descriptor;
|
||||
}
|
||||
|
||||
UIEditorPanelDescriptor BuildToolWindowHostedContentPanelDescriptor(
|
||||
std::string_view panelId,
|
||||
std::string_view title,
|
||||
float preferredWidth,
|
||||
float preferredHeight,
|
||||
float minimumWidth,
|
||||
float minimumHeight) {
|
||||
UIEditorPanelDescriptor descriptor =
|
||||
BuildHostedContentPanelDescriptor(panelId, title, false, true, true);
|
||||
descriptor.toolWindow = true;
|
||||
descriptor.preferredDetachedWindowSize =
|
||||
::XCEngine::UI::UISize(preferredWidth, preferredHeight);
|
||||
descriptor.minimumDetachedWindowSize =
|
||||
::XCEngine::UI::UISize(minimumWidth, minimumHeight);
|
||||
return descriptor;
|
||||
}
|
||||
|
||||
UIEditorPanelDescriptor BuildViewportPanelDescriptor(
|
||||
std::string_view panelId,
|
||||
std::string_view title,
|
||||
@@ -326,14 +309,7 @@ UIEditorPanelRegistry BuildEditorPanelRegistry() {
|
||||
BuildViewportPanelDescriptor(kGamePanelId, kGamePanelTitle, false, false, false, false),
|
||||
BuildHostedContentPanelDescriptor(kInspectorPanelId, kInspectorPanelTitle, true, false, false),
|
||||
BuildHostedContentPanelDescriptor(kConsolePanelId, kConsolePanelTitle, true, false, false),
|
||||
BuildHostedContentPanelDescriptor(kProjectPanelId, kProjectPanelTitle, false, false, false),
|
||||
BuildToolWindowHostedContentPanelDescriptor(
|
||||
kColorPickerPanelId,
|
||||
kColorPickerPanelTitle,
|
||||
352.0f,
|
||||
500.0f,
|
||||
320.0f,
|
||||
460.0f)
|
||||
BuildHostedContentPanelDescriptor(kProjectPanelId, kProjectPanelTitle, false, false, false)
|
||||
};
|
||||
return registry;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user