yaze 0.2.0
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
flags.h
Go to the documentation of this file.
1#ifndef YAZE_APP_EDITOR_UTILS_FLAGS_H
2#define YAZE_APP_EDITOR_UTILS_FLAGS_H
3
4#include "core/common.h"
5#include "imgui/imgui.h"
6
7namespace yaze {
8namespace app {
9namespace editor {
10
11using ImGui::BeginMenu;
12using ImGui::Checkbox;
13using ImGui::EndMenu;
14using ImGui::MenuItem;
15using ImGui::Separator;
16
18 void Draw() {
19 if (BeginMenu("Overworld Flags")) {
20 Checkbox("Enable Overworld Sprites",
21 &mutable_flags()->overworld.kDrawOverworldSprites);
22 Separator();
23 Checkbox("Save Overworld Maps",
24 &mutable_flags()->overworld.kSaveOverworldMaps);
25 Checkbox("Save Overworld Entrances",
26 &mutable_flags()->overworld.kSaveOverworldEntrances);
27 Checkbox("Save Overworld Exits",
28 &mutable_flags()->overworld.kSaveOverworldExits);
29 Checkbox("Save Overworld Items",
30 &mutable_flags()->overworld.kSaveOverworldItems);
31 Checkbox("Save Overworld Properties",
32 &mutable_flags()->overworld.kSaveOverworldProperties);
33 Checkbox("Load Custom Overworld",
34 &mutable_flags()->overworld.kLoadCustomOverworld);
35 ImGui::EndMenu();
36 }
37
38 if (BeginMenu("Dungeon Flags")) {
39 Checkbox("Draw Dungeon Room Graphics",
40 &mutable_flags()->kDrawDungeonRoomGraphics);
41 Separator();
42 Checkbox("Save Dungeon Maps", &mutable_flags()->kSaveDungeonMaps);
43 ImGui::EndMenu();
44 }
45
46 Checkbox("Use built-in file dialog",
47 &mutable_flags()->kNewFileDialogWrapper);
48 Checkbox("Enable Console Logging", &mutable_flags()->kLogToConsole);
49 Checkbox("Enable Texture Streaming",
50 &mutable_flags()->kLoadTexturesAsStreaming);
51 Checkbox("Log Instructions to Debugger",
52 &mutable_flags()->kLogInstructions);
53 Checkbox("Save All Palettes", &mutable_flags()->kSaveAllPalettes);
54 Checkbox("Save Gfx Groups", &mutable_flags()->kSaveGfxGroups);
55 Checkbox("Save Graphics Sheets", &mutable_flags()->kSaveGraphicsSheet);
56 Checkbox("Use New ImGui Input", &mutable_flags()->kUseNewImGuiInput);
57 }
58};
59
60} // namespace editor
61} // namespace app
62} // namespace yaze
63
64#endif // YAZE_APP_EDITOR_UTILS_FLAGS_H_
A class to manage experimental feature flags.
Definition common.h:36
Definition common.cc:22