diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index 294dfb319..35a57e811 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -762,7 +762,7 @@ Found in Advanced->Rendering->Info Displays ShowLocalChatFloaterBar Comment - Whether or not local chat should have an input bar, requires a restart. + Whether or not local chat should have an input bar when undocked, requires docking and undocking if already undocked. Persist 1 Type @@ -6301,22 +6301,6 @@ This should be as low as possible, but too low may break functionality 0 - FloaterChatBarlessRect - - Comment - Rectangle for chat history without input bar - Persist - 1 - Type - Rect - Value - - 0 - 172 - 500 - 0 - - FloaterClothingRect Comment diff --git a/indra/newview/llfloaterchat.cpp b/indra/newview/llfloaterchat.cpp index db38f8009..1a0fa4abd 100644 --- a/indra/newview/llfloaterchat.cpp +++ b/indra/newview/llfloaterchat.cpp @@ -107,9 +107,7 @@ LLFloaterChat::LLFloaterChat(const LLSD& seed) mFactoryMap["chat_panel"] = LLCallbackMap(createChatPanel, NULL); mFactoryMap["active_speakers_panel"] = LLCallbackMap(createSpeakersPanel, NULL); // do not automatically open singleton floaters (as result of getInstance()) - BOOL no_open = FALSE; - bool show_bar = gSavedSettings.getBOOL("ShowLocalChatFloaterBar"); - LLUICtrlFactory::getInstance()->buildFloater(this, (show_bar ? "floater_chat_history.xml" : "floater_chat_history_barless.xml"), &getFactoryMap(), no_open); + LLUICtrlFactory::getInstance()->buildFloater(this, "floater_chat_history.xml", &getFactoryMap(), /*no_open =*/false); childSetCommitCallback("show mutes",onClickToggleShowMute,this); //show mutes childSetCommitCallback("translate chat",onClickToggleTranslateChat,this); diff --git a/indra/newview/llfloaterchatterbox.cpp b/indra/newview/llfloaterchatterbox.cpp index 876e2c321..178ddc4c3 100644 --- a/indra/newview/llfloaterchatterbox.cpp +++ b/indra/newview/llfloaterchatterbox.cpp @@ -235,6 +235,7 @@ void LLFloaterChatterBox::removeFloater(LLFloater* floaterp) // only my friends floater now locked mTabContainer->lockTabs(mTabContainer->getNumLockedTabs() - 1); gSavedSettings.setBOOL("ChatHistoryTornOff", TRUE); + if (!gSavedSettings.getBOOL("ShowLocalChatFloaterBar")) floaterp->childSetVisible("chat_layout_panel", false); floaterp->setCanClose(TRUE); } else if (floaterp->getName() == "floater_my_friends") @@ -276,6 +277,7 @@ void LLFloaterChatterBox::addFloater(LLFloater* floaterp, // make sure first two tabs are now locked mTabContainer->lockTabs(num_locked_tabs + 1); gSavedSettings.setBOOL("ChatHistoryTornOff", FALSE); + floaterp->childSetVisible("chat_layout_panel", true); floaterp->setCanClose(FALSE); } else if (floaterp->getName() == "floater_my_friends") diff --git a/indra/newview/skins/default/xui/en-us/floater_chat_history.xml b/indra/newview/skins/default/xui/en-us/floater_chat_history.xml index 1afed9c2f..3d917fb28 100644 --- a/indra/newview/skins/default/xui/en-us/floater_chat_history.xml +++ b/indra/newview/skins/default/xui/en-us/floater_chat_history.xml @@ -23,7 +23,9 @@ Teleport you Control your camera - + + + Gestures @@ -31,9 +33,11 @@