Display names from Phoenix. Thanks Wolfspirit!

That's quite a piece of work. I have NO idea how Jess can downplay the
effort that went into this.

And it's still not complete, local chat is not affected, perhaps group
chat too.
This commit is contained in:
Siana Gearz
2010-11-20 06:01:09 +01:00
parent a80470865f
commit 6866a36a5c
31 changed files with 2151 additions and 27 deletions

View File

@@ -205,6 +205,8 @@
#include "scriptcounter.h"
// </edit>
#include "llavatarnamecache.h"
// [RLVa:KB]
#include "rlvhandler.h"
// [/RLVa:KB]
@@ -2700,6 +2702,13 @@ bool idle_startup()
LLAppViewer::instance()->loadNameCache();
}
// Start cache in not-running state until we figure out if we have
// capabilities for display name lookup
LLAvatarNameCache::initClass(false);
S32 phoenix_name_system = gSavedSettings.getS32("PhoenixNameSystem");
if(phoenix_name_system <= 0 || phoenix_name_system > 2) LLAvatarNameCache::setUseDisplayNames(false);
else LLAvatarNameCache::setUseDisplayNames(true);
// *Note: this is where gWorldMap used to be initialized.
// register null callbacks for audio until the audio system is initialized