summaryrefslogtreecommitdiff
path: root/src/being/being.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-03-04 01:39:30 +0300
committerAndrei Karas <akaras@inbox.ru>2018-03-04 01:39:30 +0300
commit44ef6547161dd3cd2e1bb4053bb5e8619e6dc0d0 (patch)
tree16ef6000be72c8959672d1210e89f595a55925a5 /src/being/being.cpp
parentb889e7fe2d2b1162bad9cf39831e1becf3d9e480 (diff)
downloadmanaverse-44ef6547161dd3cd2e1bb4053bb5e8619e6dc0d0.tar.gz
manaverse-44ef6547161dd3cd2e1bb4053bb5e8619e6dc0d0.tar.bz2
manaverse-44ef6547161dd3cd2e1bb4053bb5e8619e6dc0d0.tar.xz
manaverse-44ef6547161dd3cd2e1bb4053bb5e8619e6dc0d0.zip
Add support for hightlight attribute in groups.xml
This attribute allow to highlight gm groups based on groups.xml
Diffstat (limited to 'src/being/being.cpp')
-rw-r--r--src/being/being.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index 3b012fd90..d447221f8 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -5586,5 +5586,11 @@ void Being::setGroupId(const int id)
{
mGroupId = id;
showGmBadge(id != 0);
+ const bool gm = GroupDb::getHighlightName(mGroupId);
+ if (mIsGM != gm)
+ {
+ mIsGM = gm;
+ updateColors();
+ }
}
}