mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-01-11 05:58:04 -05:00
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:
parent
c914bd20b8
commit
5ce051e4ea
@ -800,6 +800,15 @@ void DrawFlagsTab() {
|
|||||||
}
|
}
|
||||||
UIWidgets::SetLastItemHoverText("Save current scene flags. Normally happens on scene exit");
|
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();
|
ImGui::EndGroup();
|
||||||
} else {
|
} else {
|
||||||
ImGui::Text("Current game state does not have an active scene");
|
ImGui::Text("Current game state does not have an active scene");
|
||||||
|
Loading…
Reference in New Issue
Block a user