From b327f890f2eabdffcae74280dc22fe7e796875f3 Mon Sep 17 00:00:00 2001 From: Mike Date: Sat, 8 Jul 2023 23:00:48 -0700 Subject: [PATCH] Partially fixed initial loading of save file Brought back the missing save file info in the info card. Still need to fix the input text box and selection highlight. --- client/lobby/CSavingScreen.cpp | 6 +++--- client/lobby/SelectionTab.cpp | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/client/lobby/CSavingScreen.cpp b/client/lobby/CSavingScreen.cpp index e5ca83b55..bd7154ae9 100644 --- a/client/lobby/CSavingScreen.cpp +++ b/client/lobby/CSavingScreen.cpp @@ -36,10 +36,10 @@ CSavingScreen::CSavingScreen() localMi->mapHeader = std::unique_ptr(new CMapHeader(*LOCPLINT->cb->getMapHeader())); tabSel = std::make_shared(screenType); - curTab = tabSel; - tabSel->toggleMode(); - tabSel->callOnSelect = std::bind(&CSavingScreen::changeSelection, this, _1); + tabSel->toggleMode(); + curTab = tabSel; + buttonStart = std::make_shared(Point(411, 535), "SCNRSAV.DEF", CGI->generaltexth->zelp[103], std::bind(&CSavingScreen::saveGame, this), EShortcut::LOBBY_SAVE_GAME); } diff --git a/client/lobby/SelectionTab.cpp b/client/lobby/SelectionTab.cpp index ad2f4c0de..4d6d3767d 100644 --- a/client/lobby/SelectionTab.cpp +++ b/client/lobby/SelectionTab.cpp @@ -442,6 +442,9 @@ void SelectionTab::updateListItems() // elemIdx is the index of the maps or saved game to display on line 0 // slider->capacity contains the number of available screen lines // slider->positionsAmnt is the number of elements after filtering + + logGlobal->trace("updateListItems called, selectionPos: %d", selectionPos); + int elemIdx = slider->getValue(); for(auto item : listItems) {