From fd7cbab3356bd4e55a9a1f340a789d9e5dba55eb Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 28 Sep 2014 12:47:50 +0300 Subject: Add homunculus minimap color. --- src/gui/userpalette.cpp | 5 ++++- src/gui/userpalette.h | 1 + src/gui/windows/minimap.cpp | 5 ++++- 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; } -- cgit v1.2.3-70-g09d2