diff options
| author | KiritoDv <36680385+KiritoDv@users.noreply.github.com> | 2025-05-16 02:44:40 +0000 |
|---|---|---|
| committer | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2025-05-16 02:44:40 +0000 |
| commit | b53a5dbcfa24ef2aa4860b6d9512709976686de8 (patch) | |
| tree | 441f2bb9c0bc8f955eb9289d19b13beab5c239c5 /src/port/ui/SceneExplorer.cpp | |
| parent | bdf5ca8d603ae56ac275bebf9fde58ae72484d76 (diff) | |
clang formatclang-format
Diffstat (limited to 'src/port/ui/SceneExplorer.cpp')
| -rw-r--r-- | src/port/ui/SceneExplorer.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/port/ui/SceneExplorer.cpp b/src/port/ui/SceneExplorer.cpp index 79b9c08e0..9e084280b 100644 --- a/src/port/ui/SceneExplorer.cpp +++ b/src/port/ui/SceneExplorer.cpp @@ -16,25 +16,25 @@ namespace Editor { - SceneExplorerWindow::~SceneExplorerWindow() { - SPDLOG_TRACE("destruct scene explorer window"); - } +SceneExplorerWindow::~SceneExplorerWindow() { + SPDLOG_TRACE("destruct scene explorer window"); +} - void SceneExplorerWindow::DrawElement() { - ImGui::Text("Scene"); +void SceneExplorerWindow::DrawElement() { + ImGui::Text("Scene"); - size_t id = 0; // id for now because we don't have unique names atm - for (auto& object : gEditor.eGameObjects) { - // Convert const char* to std::string before formatting - std::string objectName = object->Name ? object->Name : "Obj"; + size_t id = 0; // id for now because we don't have unique names atm + for (auto& object : gEditor.eGameObjects) { + // Convert const char* to std::string before formatting + std::string objectName = object->Name ? object->Name : "Obj"; - // Ensure unique label using index - std::string label = fmt::format("{}##{}", objectName, id); + // Ensure unique label using index + std::string label = fmt::format("{}##{}", objectName, id); - if (ImGui::Button(label.c_str())) { - gEditor.SelectObjectFromSceneExplorer(object); - } - id += 1; + if (ImGui::Button(label.c_str())) { + gEditor.SelectObjectFromSceneExplorer(object); } + id += 1; } } +} // namespace Editor |
