From 5ce051e4ea6594ba4b4805ca5ad666a5861a39ba Mon Sep 17 00:00:00 2001 From: Ralphie Morell Date: Fri, 21 Oct 2022 01:18:04 -0400 Subject: [PATCH] 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> --- soh/soh/Enhancements/debugger/debugSaveEditor.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/soh/soh/Enhancements/debugger/debugSaveEditor.cpp b/soh/soh/Enhancements/debugger/debugSaveEditor.cpp index 58fcc6715..6cc493a9b 100644 --- a/soh/soh/Enhancements/debugger/debugSaveEditor.cpp +++ b/soh/soh/Enhancements/debugger/debugSaveEditor.cpp @@ -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 {