diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/userpalette.cpp | 43 | ||||
-rw-r--r-- | src/gui/widgets/tabs/setup_colors.cpp | 6 |
2 files changed, 49 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")); diff --git a/src/gui/widgets/tabs/setup_colors.cpp b/src/gui/widgets/tabs/setup_colors.cpp index 12b3f0ba3..d2f38f745 100644 --- a/src/gui/widgets/tabs/setup_colors.cpp +++ b/src/gui/widgets/tabs/setup_colors.cpp @@ -350,6 +350,12 @@ void Setup_Colors::valueChanged(const SelectionEvent &event A_UNUSED) case UserColorId::ROAD_POINT: case UserColorId::MONSTER_HP: case UserColorId::MONSTER_HP2: + case UserColorId::HOMUN_HP: + case UserColorId::HOMUN_HP2: + case UserColorId::MERC_HP: + case UserColorId::MERC_HP2: + case UserColorId::ELEMENTAL_HP: + case UserColorId::ELEMENTAL_HP2: case UserColorId::PLAYER_HP: case UserColorId::PLAYER_HP2: case UserColorId::FLOOR_ITEM_TEXT: |