diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-08-06 17:15:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-08-06 17:15:02 +0300 |
commit | 8b89f43575300bceaa7ce659117707f1cbc5eddd (patch) | |
tree | 79e933c0c059ed508b1cb9facc08abed2fd07461 /src/gui/userpalette.cpp | |
parent | 382f966805d025b81eb7004e0ed03bdaae8ae637 (diff) | |
download | plus-8b89f43575300bceaa7ce659117707f1cbc5eddd.tar.gz plus-8b89f43575300bceaa7ce659117707f1cbc5eddd.tar.bz2 plus-8b89f43575300bceaa7ce659117707f1cbc5eddd.tar.xz plus-8b89f43575300bceaa7ce659117707f1cbc5eddd.zip |
Add own colors for hp bars for homunculus, mercenary, elemental.
Diffstat (limited to 'src/gui/userpalette.cpp')
-rw-r--r-- | src/gui/userpalette.cpp | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/gui/userpalette.cpp b/src/gui/userpalette.cpp index d52463425..ac0049b87 100644 --- a/src/gui/userpalette.cpp +++ b/src/gui/userpalette.cpp @@ -64,6 +64,12 @@ const std::string ColorTypeNames[CAST_SIZE( "ColorPlayerHp2", "ColorMonsterHp", "ColorMonsterHp2", + "ColorHomunHp", + "ColorHomunHp2", + "ColorMercHp", + "ColorMercHp2", + "ColorElementalHp", + "ColorElementalHp2", "", "ColorHitPlayerMonster", "ColorHitMonsterPlayer", @@ -273,6 +279,43 @@ UserPalette::UserPalette() : // TRANSLATORS: palette color _("Monster HP bar (second color)"), 50); + addColor(UserColorId::HOMUN_HP, + 0x00ff00, + GradientType::STATIC, + // TRANSLATORS: palette color + _("Homunculus HP bar"), + 50); + addColor(UserColorId::HOMUN_HP2, + 0xff0000, + GradientType::STATIC, + // TRANSLATORS: palette color + _("Homunculus HP bar (second color)"), + 50); + addColor(UserColorId::MERC_HP, + 0x00ff00, + GradientType::STATIC, + // TRANSLATORS: palette color + _("Mercenary HP bar"), + 50); + addColor(UserColorId::MERC_HP2, + 0xff0000, + GradientType::STATIC, + // TRANSLATORS: palette color + _("Mercenary HP bar (second color)"), + 50); + + addColor(UserColorId::ELEMENTAL_HP, + 0x00ff00, + GradientType::STATIC, + // TRANSLATORS: palette color + _("Elemental HP bar"), + 50); + addColor(UserColorId::ELEMENTAL_HP2, + 0xff0000, + GradientType::STATIC, + // TRANSLATORS: palette color + _("Elemental HP bar (second color)"), + 50); addLabel(UserColorId::LABEL_HITS, // TRANSLATORS: palette label _("Hits")); |