aboutsummaryrefslogtreecommitdiff
path: root/core/src/UI/UI_Items.cpp
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2022-03-15 22:29:53 -0700
committerrtk0c <[email protected]>2022-03-15 22:29:53 -0700
commitee450783622008698647010540d9b9a9d55cb323 (patch)
tree67088fa2da506a5229fea47b6a812d38b18304a0 /core/src/UI/UI_Items.cpp
parent9dcdcf68f6a60741cbdd287e7eda23b4a21a080e (diff)
Temporarily switch to cstdio instead of custom FileStream implementation
Diffstat (limited to 'core/src/UI/UI_Items.cpp')
-rw-r--r--core/src/UI/UI_Items.cpp11
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();