Skip to content
Snippets Groups Projects
Commit c238027d authored by Merov Linden's avatar Merov Linden
Browse files

CHUI-139 : Use the Chat toolbar button to open and close the conversations...

CHUI-139 : Use the Chat toolbar button to open and close the conversations multi floater. Force Nearby Conversation if floater is empty.
parent b01ab3b9
No related branches found
No related tags found
No related merge requests found
...@@ -46,11 +46,11 @@ ...@@ -46,11 +46,11 @@
available_in_toybox="true" available_in_toybox="true"
icon="Command_Chat_Icon" icon="Command_Chat_Icon"
label_ref="Command_Chat_Label" label_ref="Command_Chat_Label"
tooltip_ref="Command_Chat_Tooltip" tooltip_ref="Command_Conversations_Tooltip"
execute_function="Floater.ToggleOrBringToFront" execute_function="Floater.ToggleOrBringToFront"
execute_parameters="chat_bar" execute_parameters="im_container"
is_running_function="Floater.IsOpen" is_running_function="Floater.IsOpen"
is_running_parameters="chat_bar" is_running_parameters="im_container"
/> />
<command name="compass" <command name="compass"
available_in_toybox="false" available_in_toybox="false"
......
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#include "llviewerprecompiledheaders.h" #include "llviewerprecompiledheaders.h"
#include "llimfloater.h"
#include "llimfloatercontainer.h" #include "llimfloatercontainer.h"
#include "llfloaterreg.h" #include "llfloaterreg.h"
...@@ -86,7 +87,15 @@ BOOL LLIMFloaterContainer::postBuild() ...@@ -86,7 +87,15 @@ BOOL LLIMFloaterContainer::postBuild()
void LLIMFloaterContainer::onOpen(const LLSD& key) void LLIMFloaterContainer::onOpen(const LLSD& key)
{ {
LLMultiFloater::onOpen(key); LLMultiFloater::onOpen(key);
/* if (getFloaterCount() == 0)
{
// If there's *no* conversation open so far, we force the opening of the nearby chat conversation
// *TODO: find a way to move this to XML as a default panel or something like that
LLSD name("chat_bar");
LLSD key("");
LLFloaterReg::toggleInstanceOrBringToFront(name,key);
}
/*
if (key.isDefined()) if (key.isDefined())
{ {
LLIMFloater* im_floater = LLIMFloater::findInstance(key.asUUID()); LLIMFloater* im_floater = LLIMFloater::findInstance(key.asUUID());
...@@ -95,7 +104,7 @@ void LLIMFloaterContainer::onOpen(const LLSD& key) ...@@ -95,7 +104,7 @@ void LLIMFloaterContainer::onOpen(const LLSD& key)
im_floater->openFloater(); im_floater->openFloater();
} }
} }
*/ */
} }
// virtual // virtual
......
...@@ -3692,6 +3692,7 @@ Try enclosing path to the editor with double quotes. ...@@ -3692,6 +3692,7 @@ Try enclosing path to the editor with double quotes.
<string name="Command_Avatar_Label">Avatar</string> <string name="Command_Avatar_Label">Avatar</string>
<string name="Command_Build_Label">Build</string> <string name="Command_Build_Label">Build</string>
<string name="Command_Chat_Label">Chat</string> <string name="Command_Chat_Label">Chat</string>
<string name="Command_Conversations_Label">Conversations</string>
<string name="Command_Compass_Label">Compass</string> <string name="Command_Compass_Label">Compass</string>
<string name="Command_Destinations_Label">Destinations</string> <string name="Command_Destinations_Label">Destinations</string>
<string name="Command_Gestures_Label">Gestures</string> <string name="Command_Gestures_Label">Gestures</string>
...@@ -3718,6 +3719,7 @@ Try enclosing path to the editor with double quotes. ...@@ -3718,6 +3719,7 @@ Try enclosing path to the editor with double quotes.
<string name="Command_Avatar_Tooltip">Choose a complete avatar</string> <string name="Command_Avatar_Tooltip">Choose a complete avatar</string>
<string name="Command_Build_Tooltip">Building objects and reshaping terrain</string> <string name="Command_Build_Tooltip">Building objects and reshaping terrain</string>
<string name="Command_Chat_Tooltip">Chat with people nearby using text</string> <string name="Command_Chat_Tooltip">Chat with people nearby using text</string>
<string name="Command_Conversations_Tooltip">Converse with everyone</string>
<string name="Command_Compass_Tooltip">Compass</string> <string name="Command_Compass_Tooltip">Compass</string>
<string name="Command_Destinations_Tooltip">Destinations of interest</string> <string name="Command_Destinations_Tooltip">Destinations of interest</string>
<string name="Command_Gestures_Tooltip">Gestures for your avatar</string> <string name="Command_Gestures_Tooltip">Gestures for your avatar</string>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment