Address Issue 1732: Display name in the Communication box
Adds Chat Tabs namesystem combobox to Adv. Chat->Chat UI.
This commit is contained in:
@@ -47,6 +47,17 @@
|
||||
<key>Value</key>
|
||||
<integer>1</integer>
|
||||
</map>
|
||||
<key>IMNameSystem</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>For names in chat tabs. 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>0</integer>
|
||||
</map>
|
||||
<key>LandManagementNameSystem</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
|
||||
@@ -265,6 +265,7 @@ void LLPrefsAscentChat::refreshValues()
|
||||
mLegacyEndScroll = gSavedSettings.getBOOL("LiruLegacyScrollToEnd");
|
||||
mItalicizeActions = gSavedSettings.getBOOL("LiruItalicizeActions");
|
||||
mLegacyLogLaunch = gSavedSettings.getBOOL("LiruLegacyLogLaunch");
|
||||
mChatTabNames = gSavedSettings.getS32("IMNameSystem");
|
||||
mFriendNames = gSavedSettings.getS32("FriendNameSystem");
|
||||
mGroupMembersNames = gSavedSettings.getS32("GroupMembersNameSystem");
|
||||
mLandManagementNames = gSavedSettings.getS32("LandManagementNameSystem");
|
||||
@@ -348,6 +349,8 @@ void LLPrefsAscentChat::refresh()
|
||||
}
|
||||
|
||||
//Chat UI -----------------------------------------------------------------------------
|
||||
if (combo = getChild<LLComboBox>("chat_tabs_namesystem_combobox"))
|
||||
combo->setCurrentByIndex(mChatTabNames);
|
||||
if (combo = getChild<LLComboBox>("friends_namesystem_combobox"))
|
||||
combo->setCurrentByIndex(mFriendNames);
|
||||
if (combo = getChild<LLComboBox>("group_members_namesystem_combobox"))
|
||||
@@ -501,6 +504,7 @@ void LLPrefsAscentChat::cancel()
|
||||
gSavedSettings.setBOOL("LiruLegacyScrollToEnd", mLegacyEndScroll);
|
||||
gSavedSettings.setBOOL("LiruItalicizeActions", mItalicizeActions);
|
||||
gSavedSettings.setBOOL("LiruLegacyLogLaunch", mLegacyLogLaunch);
|
||||
gSavedSettings.setS32("IMNameSystem", mChatTabNames);
|
||||
gSavedSettings.setS32("FriendNameSystem", mFriendNames);
|
||||
gSavedSettings.setS32("GroupMembersNameSystem", mGroupMembersNames);
|
||||
gSavedSettings.setS32("LandManagementNameSystem", mLandManagementNames);
|
||||
|
||||
@@ -87,6 +87,7 @@ private:
|
||||
bool mLegacyEndScroll;
|
||||
bool mItalicizeActions;
|
||||
bool mLegacyLogLaunch;
|
||||
S32 mChatTabNames;
|
||||
S32 mFriendNames;
|
||||
S32 mGroupMembersNames;
|
||||
S32 mLandManagementNames;
|
||||
|
||||
@@ -404,7 +404,17 @@ void LLFloaterIMPanel::onAvatarNameLookup(const LLAvatarName& avatar_name)
|
||||
std::string title;
|
||||
LLAvatarNameCache::getPNSName(avatar_name, title);
|
||||
setTitle(title);
|
||||
// Singu Note: We could set tab name here, too now.
|
||||
const S32& ns(gSavedSettings.getS32("IMNameSystem"));
|
||||
LLAvatarNameCache::getPNSName(avatar_name, title, ns);
|
||||
if (!ns || ns == 3) // Remove Resident, if applicable.
|
||||
{
|
||||
size_t pos(title.find(" Resident"));
|
||||
if (pos != std::string::npos && !gSavedSettings.getBOOL("LiruShowLastNameResident"))
|
||||
title.erase(pos, 9);
|
||||
}
|
||||
setShortTitle(title);
|
||||
if (LLMultiFloater* mf = dynamic_cast<LLMultiFloater*>(getParent()))
|
||||
mf->updateFloaterTitle(this);
|
||||
}
|
||||
|
||||
LLFloaterIMPanel::~LLFloaterIMPanel()
|
||||
|
||||
@@ -56,6 +56,13 @@
|
||||
<check_box bottom_delta="-20" follows="left|top" control_name="ShowLocalChatFloaterBar" label="Show chat bar in torn-off local chat floater" name="show_local_chat_floater_bar"/>
|
||||
<check_box bottom_delta="-20" control_name="ContactsUseHorizontalButtons" follows="top" height="16" label="Use horizontal buttons for contacts floater (Needs restart)" tool_tip="When enabled, the buttons on the Friends and Groups panels will be at the bottom, horizontally arranged, instead of vertically arranged on the right." name="horiz_butt"/>
|
||||
<text bottom_delta="-14" left="16" follows="top" name="namesystems_text_box">Format for names in lists of/for:</text>
|
||||
<text bottom_delta="-18" left="20" follows="top" name="chat_tabs_namesystem_text_box">Chat Tabs:</text>
|
||||
<combo_box bottom_delta="-5" left_delta="140" follows="top" height="18" control_name="IMNameSystem" name="chat_tabs_namesystem_combobox" width="130">
|
||||
<combo_item name="Old Names" value="0">Old Names</combo_item>
|
||||
<combo_item name="Display Names (with Username)" value="1">Display Names (w/Username)</combo_item>
|
||||
<combo_item name="Display Names only" value="2">Display Names only</combo_item>
|
||||
<combo_item name="Old Names (with Display Names)" value="3">Old Names (w/Display)</combo_item>
|
||||
</combo_box>
|
||||
<text bottom_delta="-18" left="20" follows="top" name="friends_namesystem_text_box">Friends:</text>
|
||||
<combo_box bottom_delta="-5" left_delta="140" follows="top" height="18" control_name="FriendNameSystem" name="friends_namesystem_combobox" width="130">
|
||||
<combo_item name="Old Names" value="0">Old Names</combo_item>
|
||||
|
||||
Reference in New Issue
Block a user