diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-28 12:47:50 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-28 12:47:50 +0300 |
commit | fd7cbab3356bd4e55a9a1f340a789d9e5dba55eb (patch) | |
tree | 2036e952d784e1ce684f2484fcc94cd4bbf2ee48 /src/gui | |
parent | f4cb297f34fdbdc72742e3944d80eecc8b1826c9 (diff) | |
download | manaverse-fd7cbab3356bd4e55a9a1f340a789d9e5dba55eb.tar.gz manaverse-fd7cbab3356bd4e55a9a1f340a789d9e5dba55eb.tar.bz2 manaverse-fd7cbab3356bd4e55a9a1f340a789d9e5dba55eb.tar.xz manaverse-fd7cbab3356bd4e55a9a1f340a789d9e5dba55eb.zip |
Add homunculus minimap color.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/userpalette.cpp | 5 | ||||
-rw-r--r-- | src/gui/userpalette.h | 1 | ||||
-rw-r--r-- | 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; } |