summaryrefslogtreecommitdiff
path: root/src/gui/statuswindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-01-19 18:46:30 +0200
committerAndrei Karas <akaras@inbox.ru>2011-01-19 18:46:30 +0200
commit4fb5f3455e1f817348c02e6f5c42e3979dd51d64 (patch)
treed5da0b09088964c68cc8391ced5113129ab89990 /src/gui/statuswindow.cpp
parent2db104b657d0403f1b8ce2eb2dc8ada4ee9d7f73 (diff)
downloadmanaverse-4fb5f3455e1f817348c02e6f5c42e3979dd51d64.tar.gz
manaverse-4fb5f3455e1f817348c02e6f5c42e3979dd51d64.tar.bz2
manaverse-4fb5f3455e1f817348c02e6f5c42e3979dd51d64.tar.xz
manaverse-4fb5f3455e1f817348c02e6f5c42e3979dd51d64.zip
Add job bar to ministatus window.
Diffstat (limited to 'src/gui/statuswindow.cpp')
-rw-r--r--src/gui/statuswindow.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/statuswindow.cpp b/src/gui/statuswindow.cpp
index 02436c179..853ea1789 100644
--- a/src/gui/statuswindow.cpp
+++ b/src/gui/statuswindow.cpp
@@ -469,6 +469,16 @@ void StatusWindow::updateXPBar(ProgressBar *bar, bool percent)
PlayerInfo::getAttribute(EXP_NEEDED), percent);
}
+void StatusWindow::updateJobBar(ProgressBar *bar, bool percent)
+{
+ if (!bar)
+ return;
+
+ std::pair<int, int> exp = PlayerInfo::getStatExperience(
+ Net::getPlayerHandler()->getJobLocation());
+ updateProgressBar(bar, exp.first, exp.second, percent);
+}
+
void StatusWindow::updateProgressBar(ProgressBar *bar, int id, bool percent)
{
std::pair<int, int> exp = PlayerInfo::getStatExperience(id);