diff --git a/src/app/editor/code/assembly_editor.cc b/src/app/editor/code/assembly_editor.cc index 89deaa9c..9e76cd3c 100644 --- a/src/app/editor/code/assembly_editor.cc +++ b/src/app/editor/code/assembly_editor.cc @@ -1,5 +1,9 @@ #include "assembly_editor.h" +#include +#include +#include + #include "absl/strings/str_cat.h" #include "app/core/platform/file_dialog.h" #include "app/gui/icons.h" diff --git a/src/app/editor/editor.h b/src/app/editor/editor.h index b487dd41..fb6b153d 100644 --- a/src/app/editor/editor.h +++ b/src/app/editor/editor.h @@ -5,7 +5,6 @@ #include "absl/status/status.h" #include "app/editor/system/command_manager.h" -#include "app/editor/system/constant_manager.h" #include "app/editor/system/extension_manager.h" #include "app/editor/system/history_manager.h" @@ -18,7 +17,6 @@ namespace yaze { namespace editor { struct EditorContext { - ConstantManager constant_manager; CommandManager command_manager; ExtensionManager extension_manager; HistoryManager history_manager; diff --git a/src/app/editor/system/constant_manager.h b/src/app/editor/system/constant_manager.h deleted file mode 100644 index c966d713..00000000 --- a/src/app/editor/system/constant_manager.h +++ /dev/null @@ -1,75 +0,0 @@ -#ifndef YAZE_APP_EDITOR_SYSTEM_CONSTANT_MANAGER_H -#define YAZE_APP_EDITOR_SYSTEM_CONSTANT_MANAGER_H - -#include - -#include "app/zelda3/overworld/overworld_map.h" -#include "imgui/imgui.h" - -namespace yaze { -namespace editor { - -class ConstantManager { - public: - void ShowConstantManager() { - ImGui::Begin("Constant Manager"); - - // Tab bar for the different types of constants - // Overworld, dungeon, graphics, expanded - ImGui::TextWrapped( - "This is the constant manager. It allows you to view and edit " - "constants in the ROM. You should only edit these if you know what " - "you're doing."); - - if (ImGui::BeginTabBar("Constant Manager Tabs")) { - if (ImGui::BeginTabItem("Overworld")) { - ImGui::Text("Overworld constants"); - ImGui::Separator(); - ImGui::Text("OverworldCustomASMHasBeenApplied: %d", - zelda3::OverworldCustomASMHasBeenApplied); - ImGui::Text("OverworldCustomAreaSpecificBGPalette: %d", - zelda3::OverworldCustomAreaSpecificBGPalette); - ImGui::Text("OverworldCustomAreaSpecificBGEnabled: %d", - zelda3::OverworldCustomAreaSpecificBGEnabled); - ImGui::Text("OverworldCustomMainPaletteArray: %d", - zelda3::OverworldCustomMainPaletteArray); - ImGui::Text("OverworldCustomMainPaletteEnabled: %d", - zelda3::OverworldCustomMainPaletteEnabled); - ImGui::Text("OverworldCustomMosaicArray: %d", - zelda3::OverworldCustomMosaicArray); - ImGui::Text("OverworldCustomMosaicEnabled: %d", - zelda3::OverworldCustomMosaicEnabled); - ImGui::Text("OverworldCustomAnimatedGFXArray: %d", - zelda3::OverworldCustomAnimatedGFXArray); - ImGui::Text("OverworldCustomAnimatedGFXEnabled: %d", - zelda3::OverworldCustomAnimatedGFXEnabled); - - ImGui::EndTabItem(); - } - - if (ImGui::BeginTabItem("Dungeon")) { - ImGui::Text("Dungeon constants"); - ImGui::EndTabItem(); - } - - if (ImGui::BeginTabItem("Graphics")) { - ImGui::Text("Graphics constants"); - ImGui::EndTabItem(); - } - - if (ImGui::BeginTabItem("Expanded")) { - ImGui::Text("Expanded constants"); - ImGui::EndTabItem(); - } - - ImGui::EndTabBar(); - } - - ImGui::End(); - } -}; - -} // namespace editor -} // namespace yaze - -#endif // YAZE_APP_EDITOR_SYSTEM_CONSTANT_MANAGER_H