Files
XCEngine/new_editor/app/Composition/EditorPanelIds.h

26 lines
1.0 KiB
C++

#pragma once
#include <string_view>
namespace XCEngine::UI::Editor::App {
inline constexpr std::string_view kHierarchyPanelId = "hierarchy";
inline constexpr std::string_view kScenePanelId = "scene";
inline constexpr std::string_view kGamePanelId = "game";
inline constexpr std::string_view kInspectorPanelId = "inspector";
inline constexpr std::string_view kConsolePanelId = "console";
inline constexpr std::string_view kProjectPanelId = "project";
inline constexpr std::string_view kHierarchyPanelTitle = "Hierarchy";
inline constexpr std::string_view kScenePanelTitle = "Scene";
inline constexpr std::string_view kGamePanelTitle = "Game";
inline constexpr std::string_view kInspectorPanelTitle = "Inspector";
inline constexpr std::string_view kConsolePanelTitle = "Console";
inline constexpr std::string_view kProjectPanelTitle = "Project";
[[nodiscard]] constexpr bool IsEditorViewportPanelId(std::string_view panelId) {
return panelId == kScenePanelId || panelId == kGamePanelId;
}
} // namespace XCEngine::UI::Editor::App