Hide "Load" from the save state UI legend in Hardcore mode

This commit is contained in:
Silent 2021-06-08 14:16:27 +02:00
parent e21f2644d0
commit 35b35c9212
No known key found for this signature in database
GPG Key ID: AE53149BB0C45AF1
1 changed files with 6 additions and 2 deletions

View File

@ -278,12 +278,16 @@ void SaveStateSelectorUI::Draw()
ImGui::SetCursorPosX(padding);
ImGui::BeginTable("table", 2);
const bool hide_load_button = m_host_interface->IsCheevosChallengeModeActive();
ImGui::TableNextColumn();
ImGui::TextUnformatted(m_load_legend.c_str());
ImGui::TextUnformatted(!hide_load_button ? m_load_legend.c_str() : m_save_legend.c_str());
ImGui::TableNextColumn();
ImGui::TextUnformatted(m_prev_legend.c_str());
ImGui::TableNextColumn();
ImGui::TextUnformatted(m_save_legend.c_str());
if (!hide_load_button)
{
ImGui::TextUnformatted(m_save_legend.c_str());
}
ImGui::TableNextColumn();
ImGui::TextUnformatted(m_next_legend.c_str());