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
7#include "imgui/imgui.h"
8
9namespace yaze {
10namespace app {
11namespace editor {
12
14 public:
16 ImGui::Begin("Constant Manager");
17
18 // Tab bar for the different types of constants
19 // Overworld, dungeon, graphics, expanded
20 ImGui::TextWrapped(
21 "This is the constant manager. It allows you to view and edit "
22 "constants in the ROM. You should only edit these if you know what "
23 "you're doing.");
24
25 if (ImGui::BeginTabBar("Constant Manager Tabs")) {
26 if (ImGui::BeginTabItem("Overworld")) {
27 ImGui::Text("Overworld constants");
28 ImGui::Separator();
29 ImGui::Text("OverworldCustomASMHasBeenApplied: %d",
31 ImGui::Text("OverworldCustomAreaSpecificBGPalette: %d",
33 ImGui::Text("OverworldCustomAreaSpecificBGEnabled: %d",
35 ImGui::Text("OverworldCustomMainPaletteArray: %d",
37 ImGui::Text("OverworldCustomMainPaletteEnabled: %d",
39 ImGui::Text("OverworldCustomMosaicArray: %d",
41 ImGui::Text("OverworldCustomMosaicEnabled: %d",
43 ImGui::Text("OverworldCustomAnimatedGFXArray: %d",
45 ImGui::Text("OverworldCustomAnimatedGFXEnabled: %d",
47
48 ImGui::EndTabItem();
49 }
50
51 if (ImGui::BeginTabItem("Dungeon")) {
52 ImGui::Text("Dungeon constants");
53 ImGui::EndTabItem();
54 }
55
56 if (ImGui::BeginTabItem("Graphics")) {
57 ImGui::Text("Graphics constants");
58 ImGui::EndTabItem();
59 }
60
61 if (ImGui::BeginTabItem("Expanded")) {
62 ImGui::Text("Expanded constants");
63 ImGui::EndTabItem();
64 }
65
66 ImGui::EndTabBar();
67 }
68
69 ImGui::End();
70 }
71};
72
73} // namespace editor
74} // namespace app
75} // namespace yaze
76
77#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:22