Feature Request: Add a setting to control the output of key2name command

AscentCmdLineKeyToNameNameSystem
This commit is contained in:
Liru Færs
2020-01-06 01:57:26 -05:00
parent 760f23b370
commit 1b29210f16
2 changed files with 12 additions and 0 deletions

View File

@@ -807,6 +807,17 @@
<key>Value</key>
<string>key2name</string>
</map>
<key>AscentCmdLineKeyToNameNameSystem</key>
<map>
<key>Comment</key>
<string>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)</string>
<key>Persist</key>
<integer>1</integer>
<key>Type</key>
<string>S32</string>
<key>Value</key>
<integer>1</integer>
</map>
<key>AscentCmdLineOfferTp</key>
<map>
<key>Comment</key>

View File

@@ -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<S32> 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)