summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-28 12:40:10 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-28 12:40:10 +0300
commitf4cb297f34fdbdc72742e3944d80eecc8b1826c9 (patch)
treeac5576dcbbeac5d21ae2f075dd07221907841d28 /src
parent18b52b14b247f693827accf8914a1052fee1cf8d (diff)
downloadmanaplus-f4cb297f34fdbdc72742e3944d80eecc8b1826c9.tar.gz
manaplus-f4cb297f34fdbdc72742e3944d80eecc8b1826c9.tar.bz2
manaplus-f4cb297f34fdbdc72742e3944d80eecc8b1826c9.tar.xz
manaplus-f4cb297f34fdbdc72742e3944d80eecc8b1826c9.zip
Add mercenary minimap color.
Diffstat (limited to 'src')
-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 d6135bd00..e581ad1a0 100644
--- a/src/gui/userpalette.cpp
+++ b/src/gui/userpalette.cpp
@@ -74,7 +74,8 @@ const std::string ColorTypeNames[] =
"ColorHomePlaceBorder",
"ColorRoadPoint",
"ColorNet",
- "ColorPet"
+ "ColorPet",
+ "ColorMercenary"
};
std::string UserPalette::getConfigName(const std::string &typeName)
@@ -217,6 +218,8 @@ UserPalette::UserPalette() :
_("Tiles border"), 64);
// TRANSLATORS: palette color
addColor(PET, 0xffffff, STATIC, _("Pets"));
+ // TRANSLATORS: palette color
+ addColor(MERCENARY, 0xffffff, STATIC, _("Mercenary"));
commit(true);
}
diff --git a/src/gui/userpalette.h b/src/gui/userpalette.h
index f5cc07617..6bb20c837 100644
--- a/src/gui/userpalette.h
+++ b/src/gui/userpalette.h
@@ -79,6 +79,7 @@ class UserPalette final : public Palette, public ListModel
ROAD_POINT,
NET,
PET,
+ MERCENARY,
USER_COLOR_LAST
};
diff --git a/src/gui/windows/minimap.cpp b/src/gui/windows/minimap.cpp
index 19f6241e8..9b5ce52dd 100644
--- a/src/gui/windows/minimap.cpp
+++ b/src/gui/windows/minimap.cpp
@@ -336,11 +336,14 @@ void Minimap::draw(Graphics *graphics)
type = UserPalette::PET;
break;
+ case ActorType::Mercenary:
+ type = UserPalette::MERCENARY;
+ break;
+
case ActorType::Avatar:
case ActorType::Unknown:
case ActorType::Player:
case ActorType::FloorItem:
- case ActorType::Mercenary:
case ActorType::Homunculus:
default:
continue;