summaryrefslogtreecommitdiff
path: root/src/gui/widgets/skillinfo.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-17 22:29:42 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-17 22:29:42 +0300
commit92d592dce023fc155d7956e5e80f170f23b456f6 (patch)
treebfc56e3eaca5c077e7ccd5769374b8847c7b5717 /src/gui/widgets/skillinfo.cpp
parentdbca83014dbb36cd376ec2b7f9ba4be683b5829b (diff)
downloadplus-92d592dce023fc155d7956e5e80f170f23b456f6.tar.gz
plus-92d592dce023fc155d7956e5e80f170f23b456f6.tar.bz2
plus-92d592dce023fc155d7956e5e80f170f23b456f6.tar.xz
plus-92d592dce023fc155d7956e5e80f170f23b456f6.zip
Show skill type in skill popup.
Diffstat (limited to 'src/gui/widgets/skillinfo.cpp')
-rw-r--r--src/gui/widgets/skillinfo.cpp50
1 files changed, 46 insertions, 4 deletions
diff --git a/src/gui/widgets/skillinfo.cpp b/src/gui/widgets/skillinfo.cpp
index 01cb0cb16..6385cdd8d 100644
--- a/src/gui/widgets/skillinfo.cpp
+++ b/src/gui/widgets/skillinfo.cpp
@@ -90,15 +90,57 @@ void SkillInfo::update()
}
else
{
- // TRANSLATORS: skills dialog. skill level
+ // TRANSLATORS: skill level
skillLevel = strprintf(_("Lvl: %d"), baseLevel);
}
+ // TRANSLATORS: skill type
+ const char *const typeStr = _("Type: %s");
+ switch (type)
+ {
+ case SkillType::Unknown:
+ // TRANSLATORS: Skill type
+ skillEffect = strprintf(typeStr, _("Unknown"));
+ break;
+
+ case SkillType::Attack:
+ // TRANSLATORS: Skill type
+ skillEffect = strprintf(typeStr, _("Attack"));
+ break;
+
+ case SkillType::Ground:
+ // TRANSLATORS: Skill type
+ skillEffect = strprintf(typeStr, _("Ground"));
+ break;
+
+ case SkillType::Self:
+ // TRANSLATORS: Skill type
+ skillEffect = strprintf(typeStr, _("Self"));
+ break;
+
+ case SkillType::Unused:
+ // TRANSLATORS: Skill type
+ skillEffect = strprintf(typeStr, _("Unused"));
+ break;
+
+ case SkillType::Support:
+ // TRANSLATORS: Skill type
+ skillEffect = strprintf(typeStr, _("Support"));
+ break;
+
+ case SkillType::TargetTrap:
+ // TRANSLATORS: Skill type
+ skillEffect = strprintf(typeStr, _("Target trap"));
+ break;
+ default:
+ // TRANSLATORS: Skill type
+ skillEffect = strprintf(typeStr, _("Unknown:"));
+ skillEffect.append(" ").append(toString(type));
+ break;
+ }
if (sp)
- skillEffect = strprintf(_("Mana: -%d"), sp);
- else
- skillEffect.clear();
+ skillEffect.append(strprintf(_(" / Mana: -%d"), sp));
if (range > 0)
{