MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / lstSavesMouseOver

Method lstSavesMouseOver

src/Menu/ListGamesState.cpp:285–294  ·  view source on GitHub ↗

* Shows the details of the currently hovered save. * @param action Pointer to an action. */

Source from the content-addressed store, hash-verified

283 * @param action Pointer to an action.
284 */
285void ListGamesState::lstSavesMouseOver(Action *)
286{
287 int sel = _lstSaves->getSelectedRow() - _firstValidRow;
288 std::wstring wstr;
289 if (sel >= 0 && sel < (int)_saves.size())
290 {
291 wstr = _saves[sel].details;
292 }
293 _txtDetails->setText(tr("STR_DETAILS").arg(wstr));
294}
295
296/**
297 * Clears the details.

Callers

nothing calls this directly

Calls 3

getSelectedRowMethod · 0.80
argMethod · 0.60
setTextMethod · 0.45

Tested by

no test coverage detected