From 18b52b14b247f693827accf8914a1052fee1cf8d Mon Sep 17 00:00:00 2001
From: Andrei Karas <akaras@inbox.ru>
Date: Sun, 28 Sep 2014 12:24:17 +0300
Subject: Add pets minimap color.

---
 src/gui/userpalette.cpp     | 5 ++++-
 src/gui/userpalette.h       | 1 +
 src/gui/windows/minimap.cpp | 7 +++++--
 3 files changed, 10 insertions(+), 3 deletions(-)

(limited to 'src/gui')

diff --git a/src/gui/userpalette.cpp b/src/gui/userpalette.cpp
index 04b1c15d4..d6135bd00 100644
--- a/src/gui/userpalette.cpp
+++ b/src/gui/userpalette.cpp
@@ -73,7 +73,8 @@ const std::string ColorTypeNames[] =
     "ColorHomePlace",
     "ColorHomePlaceBorder",
     "ColorRoadPoint",
-    "ColorNet"
+    "ColorNet",
+    "ColorPet"
 };
 
 std::string UserPalette::getConfigName(const std::string &typeName)
@@ -214,6 +215,8 @@ UserPalette::UserPalette() :
     addColor(NET, 0x000000, STATIC,
         // TRANSLATORS: palette color
         _("Tiles border"), 64);
+    // TRANSLATORS: palette color
+    addColor(PET, 0xffffff, STATIC, _("Pets"));
     commit(true);
 }
 
diff --git a/src/gui/userpalette.h b/src/gui/userpalette.h
index b155ee5c9..f5cc07617 100644
--- a/src/gui/userpalette.h
+++ b/src/gui/userpalette.h
@@ -78,6 +78,7 @@ class UserPalette final : public Palette, public ListModel
             HOME_PLACE_BORDER,
             ROAD_POINT,
             NET,
+            PET,
             USER_COLOR_LAST
         };
 
diff --git a/src/gui/windows/minimap.cpp b/src/gui/windows/minimap.cpp
index 760020ca5..19f6241e8 100644
--- a/src/gui/windows/minimap.cpp
+++ b/src/gui/windows/minimap.cpp
@@ -331,12 +331,15 @@ void Minimap::draw(Graphics *graphics)
                     type = UserPalette::PORTAL_HIGHLIGHT;
                     break;
 
+                case ActorType::LocalPet:
+                case ActorType::Pet:
+                    type = UserPalette::PET;
+                    break;
+
                 case ActorType::Avatar:
                 case ActorType::Unknown:
                 case ActorType::Player:
                 case ActorType::FloorItem:
-                case ActorType::LocalPet:
-                case ActorType::Pet:
                 case ActorType::Mercenary:
                 case ActorType::Homunculus:
                 default:
-- 
cgit v1.2.3-70-g09d2