diff options
author | Johannes Schickel | 2012-06-20 03:42:32 +0200 |
---|---|---|
committer | Johannes Schickel | 2012-06-20 03:42:32 +0200 |
commit | d7db655c5b832691fbaa0d0d175de38f43217dc2 (patch) | |
tree | 27089679c6bbc9efbc5d73c70b8b362fd8ed5502 | |
parent | 80ae9d7d34234e6cf9a7464723691d7b2b72cb26 (diff) | |
download | scummvm-rg350-d7db655c5b832691fbaa0d0d175de38f43217dc2.tar.gz scummvm-rg350-d7db655c5b832691fbaa0d0d175de38f43217dc2.tar.bz2 scummvm-rg350-d7db655c5b832691fbaa0d0d175de38f43217dc2.zip |
GUI: Show additional meta data in the thumbnail load chooser via tooltip.
-rw-r--r-- | gui/saveload-dialog.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/gui/saveload-dialog.cpp b/gui/saveload-dialog.cpp index 6740fcad13..5d9d489fec 100644 --- a/gui/saveload-dialog.cpp +++ b/gui/saveload-dialog.cpp @@ -556,6 +556,33 @@ void LoadChooserThumbnailed::updateSaves() { curButton.setVisible(true); curButton.button->setGfx(desc.getThumbnail()); curButton.description->setLabel(Common::String::format("%d. %s", saveSlot, desc.getDescription().c_str())); + + Common::String tooltip(_("Name: ")); + tooltip += desc.getDescription(); + + if (_saveDateSupport) { + const Common::String &saveDate = desc.getSaveDate(); + if (!saveDate.empty()) { + tooltip += "\n"; + tooltip += _("Date: ") + saveDate; + } + + const Common::String &saveTime = desc.getSaveTime(); + if (!saveTime.empty()) { + tooltip += "\n"; + tooltip += _("Time: ") + saveTime; + } + } + + if (_playTimeSupport) { + const Common::String &playTime = desc.getPlayTime(); + if (!playTime.empty()) { + tooltip += "\n"; + tooltip += _("Playtime: ") + playTime; + } + } + + curButton.button->setTooltip(tooltip); } if (_curPage > 0) |