diff options
author | ewew ukek <ewewukek@gmail.com> | 2024-03-20 23:59:46 +0000 |
---|---|---|
committer | Fedja Beader <fedja@protonmail.ch> | 2024-03-20 23:59:46 +0000 |
commit | 6243e38c2f13754d11b750ffee069dd1542f905e (patch) | |
tree | 0b3d7bb9962df0f440515d23b79473215c272d3c /src/gui/userpalette.cpp | |
parent | 4f7bcdb0af1d3f2a02f55613e851770a489d91d6 (diff) | |
download | manaverse-6243e38c2f13754d11b750ffee069dd1542f905e.tar.gz manaverse-6243e38c2f13754d11b750ffee069dd1542f905e.tar.bz2 manaverse-6243e38c2f13754d11b750ffee069dd1542f905e.tar.xz manaverse-6243e38c2f13754d11b750ffee069dd1542f905e.zip |
Color setting for attack range of monsters from ignore list
This MR displays attack range of monsters from ignore attack list in different color. I picked magenta as default, this may be changed if needed.
There are actor types other than monsters but looks like it's not possible to add them to ignore list anyway.
* Flip if branches for readability
* Color setting for attack range of monsters from ignore list
****
Diffstat (limited to 'src/gui/userpalette.cpp')
-rw-r--r-- | src/gui/userpalette.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/userpalette.cpp b/src/gui/userpalette.cpp index 246cbac1b..ca86fbb28 100644 --- a/src/gui/userpalette.cpp +++ b/src/gui/userpalette.cpp @@ -94,6 +94,7 @@ const std::string ColorTypeNames[CAST_SIZE( "ColorAttackRange", "ColorAttackRangeBorder", "ColorMonsterAttackRange", + "ColorIgnoredMonsterAttackRange", "ColorSkillAttackRange", "", "ColorFloorItemText", @@ -464,6 +465,12 @@ UserPalette::UserPalette() : // TRANSLATORS: palette color _("Monster attack range"), 20); + addColor(UserColorId::IGNORED_MONSTER_ATTACK_RANGE, + 0xff00ff, + GradientType::STATIC, + // TRANSLATORS: palette color + _("Ignored monster attack range"), + 15); addColor(UserColorId::SKILL_ATTACK_RANGE, 0x0, GradientType::STATIC, |