diff options
author | Bertram <bertram@cegetel.net> | 2009-07-25 01:13:19 +0200 |
---|---|---|
committer | Bertram <bertram@cegetel.net> | 2009-07-25 01:13:19 +0200 |
commit | 34d5b7d7a1b176a9665b9cdd5e8bc42bfdb83073 (patch) | |
tree | 718dbf22afb5f94a58da41888d503801b900ead3 | |
parent | ffa576ef95433aed5e6ba82e593a52750827d9b7 (diff) | |
download | mana-client-34d5b7d7a1b176a9665b9cdd5e8bc42bfdb83073.tar.gz mana-client-34d5b7d7a1b176a9665b9cdd5e8bc42bfdb83073.tar.bz2 mana-client-34d5b7d7a1b176a9665b9cdd5e8bc42bfdb83073.tar.xz mana-client-34d5b7d7a1b176a9665b9cdd5e8bc42bfdb83073.zip |
Fixed HP and MP bar in the Ministatus Window.
-rw-r--r-- | src/gui/statuswindow.cpp | 3 | ||||
-rw-r--r-- | src/gui/statuswindow.h | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/src/gui/statuswindow.cpp b/src/gui/statuswindow.cpp index bd1d4d85..4d8ce840 100644 --- a/src/gui/statuswindow.cpp +++ b/src/gui/statuswindow.cpp @@ -179,6 +179,9 @@ StatusWindow::StatusWindow(): std::string StatusWindow::update(int id) { + if (miniStatusWindow) + miniStatusWindow->update(id); + if (id == HP) { updateHPBar(mHpBar, true); diff --git a/src/gui/statuswindow.h b/src/gui/statuswindow.h index 79382cd5..f6d4f73e 100644 --- a/src/gui/statuswindow.h +++ b/src/gui/statuswindow.h @@ -67,9 +67,9 @@ class StatusWindow : public Window static void updateMPBar(ProgressBar *bar, bool showMax = false); static void updateXPBar(ProgressBar *bar, bool percent = true); static void updateProgressBar(ProgressBar *bar, int value, int max, - bool percent); - static void updateProgressBar(ProgressBar *bar, int id, - bool percent = true); + bool percent); + void updateProgressBar(ProgressBar *bar, int id, + bool percent = true); private: /** |