mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-18 14:25:38 +00:00
Hide "Load" from the save state UI legend in Hardcore mode
This commit is contained in:
parent
e21f2644d0
commit
35b35c9212
|
@ -278,12 +278,16 @@ void SaveStateSelectorUI::Draw()
|
||||||
ImGui::SetCursorPosX(padding);
|
ImGui::SetCursorPosX(padding);
|
||||||
ImGui::BeginTable("table", 2);
|
ImGui::BeginTable("table", 2);
|
||||||
|
|
||||||
|
const bool hide_load_button = m_host_interface->IsCheevosChallengeModeActive();
|
||||||
ImGui::TableNextColumn();
|
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::TableNextColumn();
|
||||||
ImGui::TextUnformatted(m_prev_legend.c_str());
|
ImGui::TextUnformatted(m_prev_legend.c_str());
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
|
if (!hide_load_button)
|
||||||
|
{
|
||||||
ImGui::TextUnformatted(m_save_legend.c_str());
|
ImGui::TextUnformatted(m_save_legend.c_str());
|
||||||
|
}
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
ImGui::TextUnformatted(m_next_legend.c_str());
|
ImGui::TextUnformatted(m_next_legend.c_str());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue