From 1b29210f1604b146fa5fac9f58b731b9aa642ab2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Liru=20F=C3=A6rs?= Date: Mon, 6 Jan 2020 01:57:26 -0500 Subject: [PATCH] Feature Request: Add a setting to control the output of key2name command AscentCmdLineKeyToNameNameSystem --- indra/newview/app_settings/settings_ascent.xml | 11 +++++++++++ indra/newview/chatbar_as_cmdline.cpp | 1 + 2 files changed, 12 insertions(+) diff --git a/indra/newview/app_settings/settings_ascent.xml b/indra/newview/app_settings/settings_ascent.xml index 4c94a855f..7aaa46283 100644 --- a/indra/newview/app_settings/settings_ascent.xml +++ b/indra/newview/app_settings/settings_ascent.xml @@ -807,6 +807,17 @@ Value key2name + AscentCmdLineKeyToNameNameSystem + + Comment + For key to name command defined by AscentCmdLineKeyToName, the format to show the key's name in. 0 = Old Style, 1 = Display Names and Username, 2 = Displayname only, 3 = Old Style (Display Name) + Persist + 1 + Type + S32 + Value + 1 + AscentCmdLineOfferTp Comment diff --git a/indra/newview/chatbar_as_cmdline.cpp b/indra/newview/chatbar_as_cmdline.cpp index ed1eeca85..2f5da6a33 100644 --- a/indra/newview/chatbar_as_cmdline.cpp +++ b/indra/newview/chatbar_as_cmdline.cpp @@ -236,6 +236,7 @@ struct ProfCtrlListAccum : public LLControlGroup::ApplyFunctor #endif //PROF_CTRL_CALLS void spew_key_to_name(const LLUUID& targetKey, const LLAvatarName& av_name) { + static const LLCachedControl ns(gSavedSettings, "AscentCmdLineKeyToNameNameSystem"); cmdline_printchat(llformat("%s: %s", targetKey.asString().c_str(), av_name.getNSName().c_str())); } bool cmd_line_chat(std::string data, EChatType type)