diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index 07785949b..f1e85ef46 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -749,6 +749,17 @@ Found in Advanced->Rendering->Info Displays Value 1 + ContactsUseHorizontalButtons + + Comment + Whether or not groups and friends lists use horizontal buttons at the bottom of the panel or vertical ones on the right, requires a restart. + Persist + 1 + Type + Boolean + Value + 0 + ShowLocalChatFloaterBar Comment @@ -6171,7 +6182,23 @@ This should be as low as possible, but too low may break functionality FloaterContactsRect Comment - Rectangle for chat history + Rectangle for contacts floater + Persist + 1 + Type + Rect + Value + + 0 + 390 + 395 + 0 + + + FloaterContactsHorizRect + + Comment + Rectangle for contacts floater in horizontal mode Persist 1 Type diff --git a/indra/newview/ascentprefsvan.cpp b/indra/newview/ascentprefsvan.cpp index 824566c78..9b8fd2e63 100644 --- a/indra/newview/ascentprefsvan.cpp +++ b/indra/newview/ascentprefsvan.cpp @@ -190,6 +190,7 @@ void LLPrefsAscentVan::refreshValues() mTurnAround = gSavedSettings.getBOOL("TurnAroundWhenWalkingBackwards"); mAnnounceSnapshots = gSavedSettings.getBOOL("AnnounceSnapshots"); mAnnounceStreamMetadata = gSavedSettings.getBOOL("AnnounceStreamMetadata"); + mHorizButt = gSavedSettings.getBOOL("ContactsUseHorizontalButtons"); //Tags\Colors ---------------------------------------------------------------------------- mAscentUseTag = gSavedSettings.getBOOL("AscentUseTag"); @@ -273,6 +274,7 @@ void LLPrefsAscentVan::cancel() gSavedSettings.setBOOL("TurnAroundWhenWalkingBackwards", mTurnAround); gSavedSettings.setBOOL("AnnounceSnapshots", mAnnounceSnapshots); gSavedSettings.setBOOL("AnnounceStreamMetadata", mAnnounceStreamMetadata); + gSavedSettings.setBOOL("ContactsUseHorizontalButtons", mHorizButt); //Tags\Colors ---------------------------------------------------------------------------- gSavedSettings.setBOOL("AscentUseTag", mAscentUseTag); diff --git a/indra/newview/ascentprefsvan.h b/indra/newview/ascentprefsvan.h index 62600a264..4744cedc0 100644 --- a/indra/newview/ascentprefsvan.h +++ b/indra/newview/ascentprefsvan.h @@ -62,6 +62,7 @@ protected: bool mTurnAround; bool mAnnounceSnapshots; bool mAnnounceStreamMetadata; + bool mHorizButt; //Tags\Colors BOOL mAscentUseTag; std::string mReportClientUUID; diff --git a/indra/newview/llfloaterchatterbox.cpp b/indra/newview/llfloaterchatterbox.cpp index 9e41340fe..876e2c321 100644 --- a/indra/newview/llfloaterchatterbox.cpp +++ b/indra/newview/llfloaterchatterbox.cpp @@ -54,7 +54,8 @@ LLFloaterMyFriends::LLFloaterMyFriends(const LLSD& seed) mFactoryMap["groups_panel"] = LLCallbackMap(LLFloaterMyFriends::createGroupsPanel, NULL); // do not automatically open singleton floaters (as result of getInstance()) BOOL no_open = FALSE; - LLUICtrlFactory::getInstance()->buildFloater(this, "floater_my_friends.xml", &getFactoryMap(), no_open); + static LLCachedControl horiz("ContactsUseHorizontalButtons"); + LLUICtrlFactory::getInstance()->buildFloater(this, (horiz ? "floater_my_friends_horiz.xml" : "floater_my_friends.xml"), &getFactoryMap(), no_open); } LLFloaterMyFriends::~LLFloaterMyFriends() diff --git a/indra/newview/skins/default/xui/en-us/floater_my_friends_horiz.xml b/indra/newview/skins/default/xui/en-us/floater_my_friends_horiz.xml new file mode 100644 index 000000000..6a488b21f --- /dev/null +++ b/indra/newview/skins/default/xui/en-us/floater_my_friends_horiz.xml @@ -0,0 +1,11 @@ + + + + + + + diff --git a/indra/newview/skins/default/xui/en-us/panel_friends_horiz.xml b/indra/newview/skins/default/xui/en-us/panel_friends_horiz.xml new file mode 100644 index 000000000..c4d05bf8e --- /dev/null +++ b/indra/newview/skins/default/xui/en-us/panel_friends_horiz.xml @@ -0,0 +1,34 @@ + + + Multiple friends... + + + + + + + + + + + + + + + +