2015-06-09 16:41:53 -04:00
|
|
|
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
|
|
|
|
#include "FriendsAndChatPrivatePCH.h"
|
|
|
|
|
|
|
|
|
|
const FName FFriendsChatStyle::TypeName( TEXT("FFriendsChatStyle") );
|
|
|
|
|
|
|
|
|
|
const FFriendsChatStyle& FFriendsChatStyle::GetDefault()
|
|
|
|
|
{
|
|
|
|
|
static FFriendsChatStyle Default;
|
|
|
|
|
return Default;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FFriendsChatStyle& FFriendsChatStyle::SetChatEntryHeight(float Value)
|
|
|
|
|
{
|
|
|
|
|
ChatEntryHeight = Value;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FFriendsChatStyle& FFriendsChatStyle::SetGlobalChatHeaderBrush(const FSlateBrush& Value)
|
|
|
|
|
{
|
|
|
|
|
GlobalChatHeaderBrush = Value;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FFriendsChatStyle& FFriendsChatStyle::SetChatContainerBackground(const FSlateBrush& InChatContainerBackground)
|
|
|
|
|
{
|
|
|
|
|
ChatContainerBackground = InChatContainerBackground;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FFriendsChatStyle& FFriendsChatStyle::SetTextStyle(const FTextBlockStyle& InTextStle)
|
|
|
|
|
{
|
|
|
|
|
TextStyle = InTextStle;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-27 08:24:57 -04:00
|
|
|
FFriendsChatStyle& FFriendsChatStyle::SetTimeStampTextStyle(const FTextBlockStyle& InTextStle)
|
|
|
|
|
{
|
|
|
|
|
TimeStampTextStyle = InTextStle;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2015-06-09 16:41:53 -04:00
|
|
|
FFriendsChatStyle& FFriendsChatStyle::SetDefaultChatColor(const FLinearColor& InFontColor)
|
|
|
|
|
{
|
|
|
|
|
DefaultChatColor = InFontColor;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2015-06-18 06:37:43 -04:00
|
|
|
FFriendsChatStyle& FFriendsChatStyle::SetGlobalChatColor(const FLinearColor& InFontColor)
|
|
|
|
|
{
|
|
|
|
|
GlobalChatColor = InFontColor;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2015-06-09 16:41:53 -04:00
|
|
|
FFriendsChatStyle& FFriendsChatStyle::SetWhisplerChatColor(const FLinearColor& InFontColor)
|
|
|
|
|
{
|
2015-09-01 12:28:00 -04:00
|
|
|
WhisperChatColor = InFontColor;
|
2015-06-09 16:41:53 -04:00
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FFriendsChatStyle& FFriendsChatStyle::SetGameChatColor(const FLinearColor& InFontColor)
|
|
|
|
|
{
|
|
|
|
|
GameChatColor = InFontColor;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FFriendsChatStyle& FFriendsChatStyle::SetPartyChatColor(const FLinearColor& InFontColor)
|
|
|
|
|
{
|
|
|
|
|
PartyChatColor = InFontColor;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2015-09-02 11:06:38 -04:00
|
|
|
FFriendsChatStyle& FFriendsChatStyle::SetAdminChatColor(const FLinearColor& InFontColor)
|
|
|
|
|
{
|
|
|
|
|
AdminChatColor = InFontColor;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2015-09-01 12:28:00 -04:00
|
|
|
FFriendsChatStyle& FFriendsChatStyle::SetWhisplerHyperlinkChatColor(const FLinearColor& InFontColor)
|
|
|
|
|
{
|
|
|
|
|
WhisperHyperlinkChatColor = InFontColor;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FFriendsChatStyle& FFriendsChatStyle::SetGlobalHyperlinkChatColor(const FLinearColor& InFontColor)
|
|
|
|
|
{
|
|
|
|
|
GlobalHyperlinkChatColor = InFontColor;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FFriendsChatStyle& FFriendsChatStyle::SetGameHyperlinkChatColor(const FLinearColor& InFontColor)
|
|
|
|
|
{
|
|
|
|
|
GameHyperlinkChatColor = InFontColor;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FFriendsChatStyle& FFriendsChatStyle::SetPartyHyperlinkChatColor(const FLinearColor& InFontColor)
|
|
|
|
|
{
|
|
|
|
|
PartyHyperlinkChatColor = InFontColor;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
2015-06-09 16:41:53 -04:00
|
|
|
|
|
|
|
|
FFriendsChatStyle& FFriendsChatStyle::SetChatGlobalBrush(const FSlateBrush& Brush)
|
|
|
|
|
{
|
|
|
|
|
ChatGlobalBrush = Brush;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FFriendsChatStyle& FFriendsChatStyle::SetChatGameBrush(const FSlateBrush& Brush)
|
|
|
|
|
{
|
|
|
|
|
ChatGameBrush = Brush;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FFriendsChatStyle& FFriendsChatStyle::SetChatPartyBrush(const FSlateBrush& Brush)
|
|
|
|
|
{
|
|
|
|
|
ChatPartyBrush = Brush;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FFriendsChatStyle& FFriendsChatStyle::SetChatWhisperBrush(const FSlateBrush& Brush)
|
|
|
|
|
{
|
|
|
|
|
ChatWhisperBrush = Brush;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FFriendsChatStyle& FFriendsChatStyle::SetChatInvalidBrush(const FSlateBrush& Brush)
|
|
|
|
|
{
|
|
|
|
|
ChatInvalidBrush = Brush;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FFriendsChatStyle& FFriendsChatStyle::SetChatEntryTextStyle(const FEditableTextBoxStyle& InEditableTextStyle)
|
|
|
|
|
{
|
|
|
|
|
ChatEntryTextStyle = InEditableTextStyle;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FFriendsChatStyle& FFriendsChatStyle::SetChatDisplayTextStyle(const FEditableTextBoxStyle& InEditableTextStyle)
|
|
|
|
|
{
|
|
|
|
|
ChatDisplayTextStyle = InEditableTextStyle;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2015-08-12 10:35:12 -04:00
|
|
|
FFriendsChatStyle& FFriendsChatStyle::SetScrollBorderStyle(const FScrollBoxStyle& InScrollBorderStyle)
|
2015-06-09 16:41:53 -04:00
|
|
|
{
|
|
|
|
|
ScrollBorderStyle = InScrollBorderStyle;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FFriendsChatStyle& FFriendsChatStyle::SetChatBackgroundBrush(const FSlateBrush& InChatBackgroundBrush)
|
|
|
|
|
{
|
|
|
|
|
ChatBackgroundBrush = InChatBackgroundBrush;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FFriendsChatStyle& FFriendsChatStyle::SetChatFooterBrush(const FSlateBrush& Value)
|
|
|
|
|
{
|
|
|
|
|
ChatFooterBrush = Value;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FFriendsChatStyle& FFriendsChatStyle::SetChatChannelsBackgroundBrush(const FSlateBrush& InChatChannelsBackgroundBrush)
|
|
|
|
|
{
|
|
|
|
|
ChatChannelsBackgroundBrush = InChatChannelsBackgroundBrush;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FFriendsChatStyle& FFriendsChatStyle::SetQuickSettingsBrush(const FSlateBrush& Brush)
|
|
|
|
|
{
|
|
|
|
|
QuickSettingsBrush = Brush;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FFriendsChatStyle& FFriendsChatStyle::SetChatSettingsBrush(const FSlateBrush& Brush)
|
|
|
|
|
{
|
|
|
|
|
ChatSettingsBrush = Brush;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
2015-08-07 16:15:57 -04:00
|
|
|
|
2015-08-25 13:02:04 -04:00
|
|
|
FFriendsChatStyle& FFriendsChatStyle::SetMessageNotificationBrush(const FSlateBrush& Brush)
|
|
|
|
|
{
|
|
|
|
|
MessageNotificationBrush = Brush;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2015-08-07 16:15:57 -04:00
|
|
|
FFriendsChatStyle& FFriendsChatStyle::SetMinimizeButtonStyle(const FButtonStyle& Button)
|
|
|
|
|
{
|
|
|
|
|
FriendsMinimizeButtonStyle = Button;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FFriendsChatStyle& FFriendsChatStyle::SetMaximizeButtonStyle(const FButtonStyle& Button)
|
|
|
|
|
{
|
|
|
|
|
FriendsMaximizeButtonStyle = Button;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|