Made italic style /me emotes optional
parent
be38879020
commit
b8eeb96c56
|
|
@ -3710,6 +3710,17 @@
|
|||
<key>Value</key>
|
||||
<integer>1</integer>
|
||||
</map>
|
||||
<key>EmotesUseItalic</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Chat emotes are emphasized by using italic font style.</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>Boolean</string>
|
||||
<key>Value</key>
|
||||
<integer>0</integer>
|
||||
</map>
|
||||
<key>EnableGrab</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
|
|
|
|||
|
|
@ -829,7 +829,10 @@ void LLChatHistory::appendMessage(const LLChat& chat, const LLSD &args, const LL
|
|||
if (irc_me || chat.mChatStyle == CHAT_STYLE_IRC)
|
||||
{
|
||||
delimiter = LLStringUtil::null;
|
||||
style_params.font.style = "ITALIC";
|
||||
|
||||
// italics for emotes -Zi
|
||||
if(gSavedSettings.getBOOL("EmotesUseItalic"))
|
||||
style_params.font.style = "ITALIC";
|
||||
}
|
||||
|
||||
bool message_from_log = chat.mChatStyle == CHAT_STYLE_HISTORY;
|
||||
|
|
@ -843,7 +846,8 @@ void LLChatHistory::appendMessage(const LLChat& chat, const LLSD &args, const LL
|
|||
// Bold group moderators' chat -KC
|
||||
if (chat.mChatStyle == CHAT_STYLE_MODERATOR)
|
||||
{
|
||||
style_params.font.style = irc_me ? "ITALICBOLD" : "BOLD";
|
||||
// italics for emotes -Zi
|
||||
style_params.font.style = (irc_me && gSavedSettings.getBOOL("EmotesUseItalic")) ? "ITALICBOLD" : "BOLD";
|
||||
}
|
||||
|
||||
if (use_plain_text_chat_history)
|
||||
|
|
|
|||
|
|
@ -157,7 +157,9 @@ void LLNearbyChatToastPanel::addMessage(LLSD& notification)
|
|||
|
||||
if(notification["chat_style"].asInteger()== CHAT_STYLE_IRC)
|
||||
{
|
||||
style_params.font.style = "ITALIC";
|
||||
// italics for emotes -Zi
|
||||
if(gSavedSettings.getBOOL("EmotesUseItalic"))
|
||||
style_params.font.style = "ITALIC";
|
||||
}
|
||||
else if( chat_type == CHAT_TYPE_SHOUT)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@
|
|||
#include "lltooltip.h"
|
||||
|
||||
#include "llviewerchat.h"
|
||||
#include "llviewercontrol.h"
|
||||
|
||||
const S32 LLToastIMPanel::DEFAULT_MESSAGE_MAX_LINE_COUNT = 6;
|
||||
|
||||
|
|
@ -69,10 +70,14 @@ LLToastIMPanel::LLToastIMPanel(LLToastIMPanel::Params &p) : LLToastPanel(p.notif
|
|||
//style_params.font.style = "UNDERLINE";
|
||||
mMessage->clear();
|
||||
|
||||
style_params.font.style ="ITALIC";
|
||||
// italics for emotes -Zi
|
||||
if(gSavedSettings.getBOOL("EmotesUseItalic"))
|
||||
style_params.font.style ="ITALIC";
|
||||
mMessage->appendText(p.from, FALSE, style_params);
|
||||
|
||||
style_params.font.style = "ITALIC";
|
||||
// italics for emotes -Zi
|
||||
if(gSavedSettings.getBOOL("EmotesUseItalic"))
|
||||
style_params.font.style = "ITALIC"; // why is this here twice? -Zi
|
||||
mMessage->appendText(p.message.substr(3), FALSE, style_params);
|
||||
}
|
||||
else
|
||||
|
|
|
|||
|
|
@ -447,6 +447,14 @@
|
|||
left="30"
|
||||
height="20"
|
||||
width="400" />
|
||||
<check_box
|
||||
control_name="EmotesUseItalic"
|
||||
name="EmotesUseItalic"
|
||||
label="Emotes use italic font"
|
||||
layout="topleft"
|
||||
top_pad="0"
|
||||
height="20"
|
||||
width="400" />
|
||||
<check_box
|
||||
control_name="AutoCloseOOC"
|
||||
name="AutoCloseOOC"
|
||||
|
|
|
|||
Loading…
Reference in New Issue