Add: Clear Flags option (#1251)

* Added button to clear actorCtx flags

* Update soh/soh/Enhancements/debugger/debugSaveEditor.cpp

Co-authored-by: briaguya <70942617+briaguya-ai@users.noreply.github.com>
This commit is contained in:
Ralphie Morell 2022-10-21 01:18:04 -04:00 committed by GitHub
parent c914bd20b8
commit 5ce051e4ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -799,6 +799,15 @@ void DrawFlagsTab() {
gSaveContext.sceneFlags[gGlobalCtx->sceneNum].chest = act->flags.chest;
}
UIWidgets::SetLastItemHoverText("Save current scene flags. Normally happens on scene exit");
if (ImGui::Button("Clear Flags")) {
act->flags.swch = 0;
act->flags.clear = 0;
act->flags.collect = 0;
act->flags.chest = 0;
}
UIWidgets::SetLastItemHoverText("Clear current scene flags. Reload scene to see changes");
ImGui::EndGroup();
} else {