From d011f8f984f454a76adaf04142df0daa03dd00a8 Mon Sep 17 00:00:00 2001 From: Fate Date: Sun, 23 Nov 2008 11:32:07 -0700 Subject: Grey out magic bar if matk negative, update F2 window magic bar --- src/gui/ministatus.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gui/ministatus.cpp') 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); -- cgit v1.2.3-70-g09d2