Zeus has been begging for this
This commit is contained in:
@@ -8,6 +8,18 @@
|
||||
<string>settings_sh.xml</string>
|
||||
<string>settings_rlv.xml</string>
|
||||
</array>
|
||||
|
||||
<key>CCSAllowNameplateOverride</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Allow CCS HUD to override nameplates.</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>Boolean</string>
|
||||
<key>Value</key>
|
||||
<integer>1</integer>
|
||||
</map>
|
||||
|
||||
<key>HTTPRequestRate</key>
|
||||
<map>
|
||||
|
||||
@@ -3523,9 +3523,10 @@ void LLVOAvatar::idleUpdateNameTag(const LLVector3& root_pos_last)
|
||||
}
|
||||
|
||||
// check attachments for nameplate override
|
||||
static const LLCachedControl<bool> allow_nameplate_override ("CCSAllowNameplateOverride", true);
|
||||
std::string nameplate;
|
||||
attachment_map_t::iterator it, end=mAttachmentPoints.end();
|
||||
for (it=mAttachmentPoints.begin(); it!=end; ++it) {
|
||||
if (allow_nameplate_override) for (it=mAttachmentPoints.begin(); it!=end; ++it) {
|
||||
// get attached object
|
||||
LLViewerJointAttachment *atm = it->second;
|
||||
if (!atm) continue;
|
||||
@@ -8417,6 +8418,22 @@ void LLVOAvatar::setCompositeUpdatesEnabled( BOOL b )
|
||||
}
|
||||
}
|
||||
|
||||
void LLVOAvatar::setNameFromChat(const std::string &text) {
|
||||
static const LLCachedControl<bool> allow_nameplate_override ("CCSAllowNameplateOverride", true);
|
||||
if(allow_nameplate_override) {
|
||||
mNameFromChatOverride = true;
|
||||
mNameFromChatChanged = true;
|
||||
mNameFromChatText = text;
|
||||
}
|
||||
}
|
||||
|
||||
void LLVOAvatar::clearNameFromChat() {
|
||||
mNameFromChatOverride = false;
|
||||
mNameFromChatChanged = true;
|
||||
mNameFromChatText = "";
|
||||
}
|
||||
|
||||
|
||||
void LLVOAvatar::addChat(const LLChat& chat)
|
||||
{
|
||||
std::deque<LLChat>::iterator chat_iter;
|
||||
|
||||
@@ -559,8 +559,8 @@ public:
|
||||
|
||||
void setCompositeUpdatesEnabled(BOOL b);
|
||||
|
||||
void setNameFromChat(const std::string &text) { mNameFromChatOverride = mNameFromChatChanged = true; mNameFromChatText = text; }
|
||||
void clearNameFromChat() { mNameFromChatOverride = false; mNameFromChatChanged = true; mNameFromChatText = ""; }
|
||||
void setNameFromChat(const std::string &text);
|
||||
void clearNameFromChat();
|
||||
|
||||
public:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user