diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/status.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/status.cpp b/src/gui/status.cpp index 2f95f1c8..e298c3e2 100644 --- a/src/gui/status.cpp +++ b/src/gui/status.cpp @@ -314,6 +314,10 @@ void StatusWindow::updateMPBar(ProgressBar *bar, bool showMax) else bar->setText(toString(player_node->mMp)); + if (player_node->MATK <= 0) + bar->setColor(100, 100, 100); // grey, to indicate that we lack magic + else + bar->setColor(143, 192, 211); // blue, to indicate that we have magic bar->setProgress((float) player_node->mMp / (float) player_node->mMaxMp); } |