feat: Add option to load custom overworld data from ROM and enable UI

This commit is contained in:
scawful
2024-08-25 16:39:22 -04:00
parent 7e0f38ef0f
commit eda3c4f5ef
2 changed files with 6 additions and 2 deletions

View File

@@ -87,6 +87,9 @@ class ExperimentFlags {
// Save overworld properties to the Rom.
bool kSaveOverworldProperties = true;
// Load custom overworld data from the ROM and enable UI.
bool kLoadCustomOverworld = false;
} overworld;
};

View File

@@ -1,9 +1,8 @@
#ifndef YAZE_APP_EDITOR_UTILS_FLAGS_H
#define YAZE_APP_EDITOR_UTILS_FLAGS_H
#include "imgui/imgui.h"
#include "core/common.h"
#include "imgui/imgui.h"
namespace yaze {
namespace app {
@@ -31,6 +30,8 @@ struct FlagsMenu : public core::ExperimentFlags {
&mutable_flags()->overworld.kSaveOverworldItems);
Checkbox("Save Overworld Properties",
&mutable_flags()->overworld.kSaveOverworldProperties);
Checkbox("Load Custom Overworld",
&mutable_flags()->overworld.kLoadCustomOverworld);
ImGui::EndMenu();
}