ソースを参照

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.
Mike 2 年 前
コミット
b327f890f2
2 ファイル変更6 行追加3 行削除
  1. 3 3
      client/lobby/CSavingScreen.cpp
  2. 3 0
      client/lobby/SelectionTab.cpp

+ 3 - 3
client/lobby/CSavingScreen.cpp

@@ -36,10 +36,10 @@ CSavingScreen::CSavingScreen()
 	localMi->mapHeader = std::unique_ptr<CMapHeader>(new CMapHeader(*LOCPLINT->cb->getMapHeader()));
 
 	tabSel = std::make_shared<SelectionTab>(screenType);
-	curTab = tabSel;
-	tabSel->toggleMode();
-
 	tabSel->callOnSelect = std::bind(&CSavingScreen::changeSelection, this, _1);
+	tabSel->toggleMode();
+	curTab = tabSel;
+		
 	buttonStart = std::make_shared<CButton>(Point(411, 535), "SCNRSAV.DEF", CGI->generaltexth->zelp[103], std::bind(&CSavingScreen::saveGame, this), EShortcut::LOBBY_SAVE_GAME);
 }
 

+ 3 - 0
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)
 	{