diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-06 15:48:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-06 15:48:47 +0300 |
commit | 2131a42c62c35c3b1876da1ac8dda967b93768e7 (patch) | |
tree | 37fdb236190e38db1b8d915db6ab69cdef889dc1 /src/gui/widgets/skillinfo.cpp | |
parent | 83a6463a88b4b5eda003f55b419995c13476d917 (diff) | |
download | manaplus-2131a42c62c35c3b1876da1ac8dda967b93768e7.tar.gz manaplus-2131a42c62c35c3b1876da1ac8dda967b93768e7.tar.bz2 manaplus-2131a42c62c35c3b1876da1ac8dda967b93768e7.tar.xz manaplus-2131a42c62c35c3b1876da1ac8dda967b93768e7.zip |
Show mana in skill popup.
Diffstat (limited to 'src/gui/widgets/skillinfo.cpp')
-rw-r--r-- | src/gui/widgets/skillinfo.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/widgets/skillinfo.cpp b/src/gui/widgets/skillinfo.cpp index 29b9510ee..721c4c98e 100644 --- a/src/gui/widgets/skillinfo.cpp +++ b/src/gui/widgets/skillinfo.cpp @@ -38,6 +38,7 @@ SkillInfo::SkillInfo() : skillLevel(), skillExp(), + skillMana(), useButton(), progress(0.0F), color(), @@ -93,6 +94,11 @@ void SkillInfo::update() skillLevel = strprintf(_("Lvl: %d"), baseLevel); } + if (sp) + skillMana = strprintf(_("Mana: -%d"), sp); + else + skillMana.clear(); + level = baseLevel; skillLevelWidth = -1; |