summaryrefslogtreecommitdiff
path: root/src/gui/widgets/skillinfo.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-06 18:26:01 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-06 18:26:01 +0300
commit813779679c40323d29aaa6cb334210e3944d5c99 (patch)
tree60ea74121bba5113431fc9cd550bdef6ba401837 /src/gui/widgets/skillinfo.cpp
parent6d57a376b3f676b79280d4109dbe5d9bb7147821 (diff)
downloadplus-813779679c40323d29aaa6cb334210e3944d5c99.tar.gz
plus-813779679c40323d29aaa6cb334210e3944d5c99.tar.bz2
plus-813779679c40323d29aaa6cb334210e3944d5c99.tar.xz
plus-813779679c40323d29aaa6cb334210e3944d5c99.zip
Use skillpopup in skills window.
Diffstat (limited to 'src/gui/widgets/skillinfo.cpp')
-rw-r--r--src/gui/widgets/skillinfo.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/gui/widgets/skillinfo.cpp b/src/gui/widgets/skillinfo.cpp
index 721c4c98e..01cb0cb16 100644
--- a/src/gui/widgets/skillinfo.cpp
+++ b/src/gui/widgets/skillinfo.cpp
@@ -38,7 +38,7 @@
SkillInfo::SkillInfo() :
skillLevel(),
skillExp(),
- skillMana(),
+ skillEffect(),
useButton(),
progress(0.0F),
color(),
@@ -94,10 +94,18 @@ void SkillInfo::update()
skillLevel = strprintf(_("Lvl: %d"), baseLevel);
}
+
if (sp)
- skillMana = strprintf(_("Mana: -%d"), sp);
+ skillEffect = strprintf(_("Mana: -%d"), sp);
else
- skillMana.clear();
+ skillEffect.clear();
+
+ if (range > 0)
+ {
+ if (!skillEffect.empty())
+ skillEffect.append(" / ");
+ skillEffect.append(strprintf(_("Range: %d"), range));
+ }
level = baseLevel;
skillLevelWidth = -1;