diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-01-19 18:46:30 +0200 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-01-19 18:46:30 +0200 |
commit | 4fb5f3455e1f817348c02e6f5c42e3979dd51d64 (patch) | |
tree | d5da0b09088964c68cc8391ced5113129ab89990 /src/gui/statuswindow.cpp | |
parent | 2db104b657d0403f1b8ce2eb2dc8ada4ee9d7f73 (diff) | |
download | plus-4fb5f3455e1f817348c02e6f5c42e3979dd51d64.tar.gz plus-4fb5f3455e1f817348c02e6f5c42e3979dd51d64.tar.bz2 plus-4fb5f3455e1f817348c02e6f5c42e3979dd51d64.tar.xz plus-4fb5f3455e1f817348c02e6f5c42e3979dd51d64.zip |
Add job bar to ministatus window.
Diffstat (limited to 'src/gui/statuswindow.cpp')
-rw-r--r-- | src/gui/statuswindow.cpp | 10 |
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); |