diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-07-17 22:23:48 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-07-17 22:23:48 +0300 |
commit | 923bd5817bad530de2652529eaf7f5366188034c (patch) | |
tree | 400e78ab63efa37736e2d7cdefbfcdf8250afa1f | |
parent | 64414b969b94ba33a5f4fe296651e2631c106a88 (diff) | |
download | manaverse-923bd5817bad530de2652529eaf7f5366188034c.tar.gz manaverse-923bd5817bad530de2652529eaf7f5366188034c.tar.bz2 manaverse-923bd5817bad530de2652529eaf7f5366188034c.tar.xz manaverse-923bd5817bad530de2652529eaf7f5366188034c.zip |
show job level in job bar popup.
-rw-r--r-- | src/gui/ministatuswindow.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/gui/ministatuswindow.cpp b/src/gui/ministatuswindow.cpp index 7a1a95fcc..2c5e0c23a 100644 --- a/src/gui/ministatuswindow.cpp +++ b/src/gui/ministatuswindow.cpp @@ -353,16 +353,19 @@ void MiniStatusWindow::mouseMoved(gcn::MouseEvent &event) const std::pair<int, int> exp = PlayerInfo::getStatExperience( Net::getPlayerHandler()->getJobLocation()); + // TRANSLATORS: job bar label + const std::string level = strprintf(_("Job level: %d"), + PlayerInfo::getStatBase( + Net::getPlayerHandler()->getJobLocation())); + if (exp.first > exp.second) { - mTextPopup->show(x + rect.x, y + rect.y, - event.getSource()->getId(), + mTextPopup->show(x + rect.x, y + rect.y, level, strprintf("%d/%d", exp.first, exp.second)); } else { - mTextPopup->show(x + rect.x, y + rect.y, - event.getSource()->getId(), + mTextPopup->show(x + rect.x, y + rect.y, level, strprintf("%d/%d", exp.first, exp.second), // TRANSLATORS: status bar label strprintf("%s: %d", _("Need"), exp.second - exp.first)); |