Feature Request: Add a setting to control the output of key2name command
AscentCmdLineKeyToNameNameSystem
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user