diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-12-09 13:57:30 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-12-09 13:57:30 +0300 |
commit | 28999e7571b66733dcf0ddbc7e376c2c3fc1bfae (patch) | |
tree | d507a9857af937ab93f1a6414d3311ee6b0aef43 /src/gui/windows/ministatuswindow.cpp | |
parent | 7cccaaa192c2ed274b3aa9d26788479f6fbed611 (diff) | |
download | manaplus-28999e7571b66733dcf0ddbc7e376c2c3fc1bfae.tar.gz manaplus-28999e7571b66733dcf0ddbc7e376c2c3fc1bfae.tar.bz2 manaplus-28999e7571b66733dcf0ddbc7e376c2c3fc1bfae.tar.xz manaplus-28999e7571b66733dcf0ddbc7e376c2c3fc1bfae.zip |
Add text colors for mp bar.
New theme colors: MP_BAR, MP_BAR_OUTLINE, NO_MP_BAR, NO_MP_BAR_OUTLINE
Diffstat (limited to 'src/gui/windows/ministatuswindow.cpp')
-rw-r--r-- | src/gui/windows/ministatuswindow.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/windows/ministatuswindow.cpp b/src/gui/windows/ministatuswindow.cpp index 0141354ee..8186f1e04 100644 --- a/src/gui/windows/ministatuswindow.cpp +++ b/src/gui/windows/ministatuswindow.cpp @@ -65,7 +65,8 @@ MiniStatusWindow::MiniStatusWindow() : mHpBar(createBar(0, 100, 0, Theme::HP_BAR, Theme::PROG_HP, "hp bar", _("health bar"))), mMpBar(Net::getGameHandler()->canUseMagicBar() - ? createBar(0, 100, 0, Theme::PROGRESS_BAR, + ? createBar(0, 100, 0, Net::getPlayerHandler()->canUseMagic() + ? Theme::MP_BAR : Theme::NO_MP_BAR, Net::getPlayerHandler()->canUseMagic() // TRANSLATORS: status bar name ? Theme::PROG_MP : Theme::PROG_NO_MP, "mp bar", _("mana bar")) |