Race Lockout (#5364)
* Implement race lockout on the new menu, with option for opt-out. * Cal's requests.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user