summaryrefslogtreecommitdiff
path: root/src/gui/ministatus.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/ministatus.cpp')
-rw-r--r--src/gui/ministatus.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/ministatus.cpp b/src/gui/ministatus.cpp
index 077e2331..388b5fbf 100644
--- a/src/gui/ministatus.cpp
+++ b/src/gui/ministatus.cpp
@@ -99,6 +99,11 @@ void MiniStatusWindow::update()
mHpBar->setProgress((float) player_node->mHp / player_node->mMaxHp);
mMpBar->setProgress((float) player_node->mMp / player_node->mMaxMp);
+ if (player_node->MATK <= 0)
+ mMpBar->setColor(100, 100, 100); // grey, to indicate that we lack magic
+ else
+ mMpBar->setColor(143, 192, 211); // blue, to indicate that we have magic
+
mXpBar->setProgress(
(float) player_node->getXp() / player_node->mXpForNextLevel);