summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui/userpalette.cpp5
-rw-r--r--src/gui/userpalette.h1
-rw-r--r--src/gui/windows/minimap.cpp5
3 files changed, 9 insertions, 2 deletions
diff --git a/src/gui/userpalette.cpp b/src/gui/userpalette.cpp
index e581ad1a0..ec74ae6e8 100644
--- a/src/gui/userpalette.cpp
+++ b/src/gui/userpalette.cpp
@@ -75,7 +75,8 @@ const std::string ColorTypeNames[] =
"ColorRoadPoint",
"ColorNet",
"ColorPet",
- "ColorMercenary"
+ "ColorMercenary",
+ "ColorHomunculus"
};
std::string UserPalette::getConfigName(const std::string &typeName)
@@ -220,6 +221,8 @@ UserPalette::UserPalette() :
addColor(PET, 0xffffff, STATIC, _("Pets"));
// TRANSLATORS: palette color
addColor(MERCENARY, 0xffffff, STATIC, _("Mercenary"));
+ // TRANSLATORS: palette color
+ addColor(HOMUNCULUS, 0xffffff, STATIC, _("Homunculus"));
commit(true);
}
diff --git a/src/gui/userpalette.h b/src/gui/userpalette.h
index 6bb20c837..daf7db778 100644
--- a/src/gui/userpalette.h
+++ b/src/gui/userpalette.h
@@ -80,6 +80,7 @@ class UserPalette final : public Palette, public ListModel
NET,
PET,
MERCENARY,
+ HOMUNCULUS,
USER_COLOR_LAST
};
diff --git a/src/gui/windows/minimap.cpp b/src/gui/windows/minimap.cpp
index 9b5ce52dd..5793a6b4a 100644
--- a/src/gui/windows/minimap.cpp
+++ b/src/gui/windows/minimap.cpp
@@ -340,11 +340,14 @@ void Minimap::draw(Graphics *graphics)
type = UserPalette::MERCENARY;
break;
+ case ActorType::Homunculus:
+ type = UserPalette::HOMUNCULUS;
+ break;
+
case ActorType::Avatar:
case ActorType::Unknown:
case ActorType::Player:
case ActorType::FloorItem:
- case ActorType::Homunculus:
default:
continue;
}