From 29c3231966e48909903c8c114089690d76fa4b1f Mon Sep 17 00:00:00 2001 From: probonopd Date: Fri, 11 Aug 2023 08:32:52 +0200 Subject: [PATCH] Print performance number --- src/uimenu.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/uimenu.cpp b/src/uimenu.cpp index 360a5b0..e5f7621 100644 --- a/src/uimenu.cpp +++ b/src/uimenu.cpp @@ -1318,13 +1318,16 @@ void CUIMenu::PerformanceMenu (CUIMenu *pUIMenu, TMenuEvent Event) { Value = pUIMenu->m_pMiniDexed->GetPerformanceName(nValue); - std::string nPSelected = ""; if(nValue == pUIMenu->m_pMiniDexed->GetActualPerformanceID()) { - nPSelected= "[L]"; + nPSelected = std::to_string(pUIMenu->m_pMiniDexed->GetActualPerformanceID()) + " [L]"; } - + else + { + nPSelected = std::to_string(pUIMenu->m_pMiniDexed->GetActualPerformanceID()); + } + pUIMenu->m_pUI->DisplayWrite (pUIMenu->m_pParentMenu[pUIMenu->m_nCurrentMenuItem].Name, nPSelected.c_str(), Value.c_str (), (int) nValue > 0, (int) nValue < (int) pUIMenu->m_pMiniDexed->GetLastPerformance()-1);