yaze 0.2.0
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
constant_manager.h
Go to the documentation of this file.
1#ifndef YAZE_APP_EDITOR_SYSTEM_CONSTANT_MANAGER_H
2#define YAZE_APP_EDITOR_SYSTEM_CONSTANT_MANAGER_H
3
4#include <cstddef>
5#include <cstdint>
6#include <memory>
7#include <unordered_map>
8#include <vector>
9
10#include "absl/status/status.h"
12#include "app/gfx/bitmap.h"
14#include "app/gfx/snes_tile.h"
15#include "app/rom.h"
16#include "app/zelda3/common.h"
19#include "imgui/imgui.h"
20
21namespace yaze {
22namespace app {
23namespace editor {
24
26 public:
28 ImGui::Begin("Constant Manager");
29
30 // Tab bar for the different types of constants
31 // Overworld, dungeon, graphics, expanded
32 ImGui::TextWrapped(
33 "This is the constant manager. It allows you to view and edit "
34 "constants in the ROM. You should only edit these if you know what "
35 "you're doing.");
36
37 if (ImGui::BeginTabBar("Constant Manager Tabs")) {
38 if (ImGui::BeginTabItem("Overworld")) {
39 ImGui::Text("Overworld constants");
40 ImGui::Separator();
41 ImGui::Text("OverworldCustomASMHasBeenApplied: %d",
43 ImGui::Text("OverworldCustomAreaSpecificBGPalette: %d",
45 ImGui::Text("OverworldCustomAreaSpecificBGEnabled: %d",
47 ImGui::Text("OverworldCustomMainPaletteArray: %d",
49 ImGui::Text("OverworldCustomMainPaletteEnabled: %d",
51 ImGui::Text("OverworldCustomMosaicArray: %d",
53 ImGui::Text("OverworldCustomMosaicEnabled: %d",
55 ImGui::Text("OverworldCustomAnimatedGFXArray: %d",
57 ImGui::Text("OverworldCustomAnimatedGFXEnabled: %d",
59
60 ImGui::EndTabItem();
61 }
62
63 if (ImGui::BeginTabItem("Dungeon")) {
64 ImGui::Text("Dungeon constants");
65 ImGui::EndTabItem();
66 }
67
68 if (ImGui::BeginTabItem("Graphics")) {
69 ImGui::Text("Graphics constants");
70 ImGui::EndTabItem();
71 }
72
73 if (ImGui::BeginTabItem("Expanded")) {
74 ImGui::Text("Expanded constants");
75 ImGui::EndTabItem();
76 }
77
78 ImGui::EndTabBar();
79 }
80
81 ImGui::End();
82 }
83};
84
85} // namespace editor
86} // namespace app
87} // namespace yaze
88
89#endif // YAZE_APP_EDITOR_SYSTEM_CONSTANT_MANAGER_H
constexpr int OverworldCustomAnimatedGFXArray
constexpr int OverworldCustomAreaSpecificBGEnabled
constexpr int OverworldCustomASMHasBeenApplied
constexpr int OverworldCustomMosaicEnabled
constexpr int OverworldCustomAnimatedGFXEnabled
constexpr int OverworldCustomAreaSpecificBGPalette
constexpr int OverworldCustomMainPaletteEnabled
constexpr int OverworldCustomMosaicArray
constexpr int OverworldCustomMainPaletteArray
Definition common.cc:21