Add indicator to complexity display in name tag if avatar gets impostored due to texture surface exceeding limit

meow-7.2.2
Ansariel 2018-07-18 20:49:09 +02:00
parent 57f8ce1e3c
commit 4236fb56c8
1 changed files with 3 additions and 1 deletions

View File

@ -3496,7 +3496,9 @@ void LLVOAvatar::idleUpdateNameTagText(BOOL new_name)
LLStringUtil::format_map_t label_args;
label_args["COMPLEXITY"] = complexity_string;
addNameTagLine(format_string(complexity_label, label_args), complexity_color, LLFontGL::NORMAL, LLFontGL::getFontSansSerifSmall());
static LLCachedControl<F32> max_attachment_area(gSavedSettings, "RenderAutoMuteSurfaceAreaLimit", 1000.0f);
bool surface_limit_exceeded = max_attachment_area > 0.f && mAttachmentSurfaceArea > max_attachment_area;
addNameTagLine(format_string(complexity_label, label_args) + (surface_limit_exceeded ? " \xE2\x96\xA0" : ""), complexity_color, LLFontGL::NORMAL, LLFontGL::getFontSansSerifSmall());
}
// </FS:Ansariel>