Optionally, remove chatbar from local chat floater.
FloaterChatBarlessRect keeps the size of this separate, for those who want to switch by mood. ShowLocalChatFloaterBar toggles this. Show local chat bar in floater entry added to Adv. Chat prefs. floater_chat_history_barless.xml added for this.
This commit is contained in:
@@ -108,7 +108,8 @@ LLFloaterChat::LLFloaterChat(const LLSD& seed)
|
||||
mFactoryMap["active_speakers_panel"] = LLCallbackMap(createSpeakersPanel, NULL);
|
||||
// do not automatically open singleton floaters (as result of getInstance())
|
||||
BOOL no_open = FALSE;
|
||||
LLUICtrlFactory::getInstance()->buildFloater(this,"floater_chat_history.xml",&getFactoryMap(),no_open);
|
||||
bool show_bar = gSavedSettings.getBOOL("ShowLocalChatFloaterBar");
|
||||
LLUICtrlFactory::getInstance()->buildFloater(this, (show_bar ? "floater_chat_history.xml" : "floater_chat_history_barless.xml"), &getFactoryMap(), no_open);
|
||||
|
||||
childSetCommitCallback("show mutes",onClickToggleShowMute,this); //show mutes
|
||||
childSetCommitCallback("translate chat",onClickToggleTranslateChat,this);
|
||||
|
||||
Reference in New Issue
Block a user