diff options
Diffstat (limited to 'core/src/UI/UI_Items.cpp')
-rw-r--r-- | core/src/UI/UI_Items.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/core/src/UI/UI_Items.cpp b/core/src/UI/UI_Items.cpp index 5b84cb8..a33c61b 100644 --- a/core/src/UI/UI_Items.cpp +++ b/core/src/UI/UI_Items.cpp @@ -1,5 +1,4 @@ #include "UI.hpp" -#include "UI.hpp" #include "Model/GlobalStates.hpp" #include "Model/Project.hpp" @@ -9,7 +8,7 @@ #include <imgui.h> #include <imgui_stdlib.h> -namespace { +namespace CPLT_UNITY_ID { enum class ActionResult { @@ -229,7 +228,7 @@ void ItemListEditor(ItemList<T>& list) ItemListEntries<T>(list, selectedIdx); } -} // namespace +} // namespace CPLT_UNITY_ID void UI::ItemsTab() { @@ -237,15 +236,15 @@ void UI::ItemsTab() if (ImGui::BeginTabBar("ItemViewTabs")) { if (ImGui::BeginTabItem(I18N_TEXT("Products", L10N_ITEM_CATEGORY_PRODUCT))) { - ItemListEditor(gs.GetCurrentProject()->Products); + CPLT_UNITY_ID::ItemListEditor(gs.GetCurrentProject()->Products); ImGui::EndTabItem(); } if (ImGui::BeginTabItem(I18N_TEXT("Factories", L10N_ITEM_CATEGORY_FACTORY))) { - ItemListEditor(gs.GetCurrentProject()->Factories); + CPLT_UNITY_ID::ItemListEditor(gs.GetCurrentProject()->Factories); ImGui::EndTabItem(); } if (ImGui::BeginTabItem(I18N_TEXT("Customers", L10N_ITEM_CATEGORY_CUSTOMER))) { - ItemListEditor(gs.GetCurrentProject()->Customers); + CPLT_UNITY_ID::ItemListEditor(gs.GetCurrentProject()->Customers); ImGui::EndTabItem(); } ImGui::EndTabBar(); |