From 923bd5817bad530de2652529eaf7f5366188034c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 17 Jul 2013 22:23:48 +0300 Subject: show job level in job bar popup. --- src/gui/ministatuswindow.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src') 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 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)); -- cgit v1.2.3-70-g09d2