summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/being/being.cpp2
-rw-r--r--src/enums/gui/usercolorid.h1
-rw-r--r--src/gui/userpalette.cpp6
3 files changed, 8 insertions, 1 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index bf17a2a23..c15c80df3 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -2084,7 +2084,7 @@ void Being::updateColors()
}
else if (mEnemy)
{
- mNameColor = &userPalette->getColor(UserColorId::MONSTER);
+ mNameColor = &userPalette->getColor(UserColorId::ENEMY);
}
else if (mParty && localPlayer
&& mParty == localPlayer->getParty())
diff --git a/src/enums/gui/usercolorid.h b/src/enums/gui/usercolorid.h
index 5087c36f8..675bec7fa 100644
--- a/src/enums/gui/usercolorid.h
+++ b/src/enums/gui/usercolorid.h
@@ -34,6 +34,7 @@ enumStart(UserColorId)
DISREGARDED,
IGNORED,
ERASED,
+ ENEMY,
PC,
SELF,
GM,
diff --git a/src/gui/userpalette.cpp b/src/gui/userpalette.cpp
index 8ae5cb8b0..7fe8074b0 100644
--- a/src/gui/userpalette.cpp
+++ b/src/gui/userpalette.cpp
@@ -38,6 +38,7 @@ const std::string ColorTypeNames[] =
"ColorDisregarded",
"ColorIgnored",
"ColorErased",
+ "ColorEnemy",
"ColorPlayer",
"ColorSelf",
"ColorGM",
@@ -184,6 +185,11 @@ UserPalette::UserPalette() :
// TRANSLATORS: palette color
GradientType::STATIC,
_("Guild members"));
+ addColor(UserColorId::ENEMY,
+ 0xff4040,
+ GradientType::STATIC,
+ // TRANSLATORS: palette color
+ _("Enemy"));
addColor(UserColorId::PARTICLE,
0xffffff,
// TRANSLATORS: palette color