Race Lockout (#5364)

* Implement race lockout on the new menu, with option for opt-out.

* Cal's requests.
This commit is contained in:
Malkierian
2025-04-13 16:29:29 -07:00
committed by GitHub
parent 46b40b0220
commit 5e399fe7a2
22 changed files with 251 additions and 89 deletions

View File

@@ -1665,6 +1665,7 @@ void ResetBaseOptions() {
void SaveEditorWindow::DrawElement() {
PushStyleTabs(THEME_COLOR);
ImGui::PushFont(OTRGlobals::Instance->fontMonoLarger);
ImGui::BeginDisabled(CVarGetInteger(CVAR_SETTING("DisableChanges"), 0));
if (ImGui::BeginTabBar("SaveContextTabBar", ImGuiTabBarFlags_NoCloseWithMiddleMouseButton)) {
ResetBaseOptions();
@@ -1706,6 +1707,7 @@ void SaveEditorWindow::DrawElement() {
ImGui::EndTabBar();
}
ImGui::EndDisabled();
ImGui::PopFont();
PopStyleTabs();
}