FSShowOwnTagColor overrides Colorize self tag pref

meow-7.2.2
Cinders 2013-05-27 10:15:13 -06:00
parent 4f5a360f19
commit 465e66946d
1 changed files with 9 additions and 8 deletions

View File

@ -2715,6 +2715,7 @@ void LLVOAvatar::idleUpdateNameTagText(BOOL new_name)
static LLUICachedControl<bool> colorize_tags("FSColorizeTags");
bool show_friends = (colorize_friends && colorize_tags);
// </FS:CR>
static LLUICachedControl<U32> color_client_tags("FSColorClienttags");
if(mClientTagData.has("color") && !(show_friends && (is_friend || LGGContactSets::getInstance()->hasFriendColorThatShouldShow(getID(), LGG_CS_TAG))) && color_client_tags > 0 && !this->isSelf())
{
@ -2766,14 +2767,6 @@ void LLVOAvatar::idleUpdateNameTagText(BOOL new_name)
}
}
// </FS:Ansariel>
// <FS:CR> Colorize tags
static LLCachedControl<bool> fsShowOwnTagColor(gSavedSettings, "FSShowOwnTagColor");
if (isSelf() && fsShowOwnTagColor)
{
static LLCachedControl<LLColor4> firestormTagColor(gSavedPerAccountSettings, "FirestormTagColor");
name_tag_color = firestormTagColor;
}
// </FS:CR>
// Rebuild name tag if state change detected
if (mNameString.empty()
@ -3176,6 +3169,14 @@ LLColor4 LLVOAvatar::getNameTagColor()
// <FS:CR> FIRE-1061 - Color friends, lindens, muted, etc
color = LGGContactSets::getInstance()->getSpecialColor(getID(), color);
static LLUICachedControl<bool> fsShowOwnTagColor("FSShowOwnTagColor");
if (isSelf() && fsShowOwnTagColor)
{
static LLCachedControl<LLColor4> firestormTagColor(gSavedPerAccountSettings, "FirestormTagColor");
color = firestormTagColor;
}
// </FS:CR>
if (LGGContactSets::getInstance()->hasFriendColorThatShouldShow(getID(), LGG_CS_TAG))
{
color = LGGContactSets::getInstance()->getFriendColor(getID());