Files
UnrealEngineUWP/Engine/Source/Developer/FriendsAndChat/Private/FriendsChatStyle.cpp
Nicholas Davies ba13627b01 Updating Fortnite and Portal to use the social plugin
#codereview Antony.Carter

[CL 2691682 by Nicholas Davies in Main branch]
2015-09-15 10:18:11 -04:00

198 lines
4.7 KiB
C++

// 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;
}
FFriendsChatStyle& FFriendsChatStyle::SetTimeStampTextStyle(const FTextBlockStyle& InTextStle)
{
TimeStampTextStyle = InTextStle;
return *this;
}
FFriendsChatStyle& FFriendsChatStyle::SetDefaultChatColor(const FLinearColor& InFontColor)
{
DefaultChatColor = InFontColor;
return *this;
}
FFriendsChatStyle& FFriendsChatStyle::SetGlobalChatColor(const FLinearColor& InFontColor)
{
GlobalChatColor = InFontColor;
return *this;
}
FFriendsChatStyle& FFriendsChatStyle::SetWhisplerChatColor(const FLinearColor& InFontColor)
{
WhisperChatColor = InFontColor;
return *this;
}
FFriendsChatStyle& FFriendsChatStyle::SetGameChatColor(const FLinearColor& InFontColor)
{
GameChatColor = InFontColor;
return *this;
}
FFriendsChatStyle& FFriendsChatStyle::SetPartyChatColor(const FLinearColor& InFontColor)
{
PartyChatColor = InFontColor;
return *this;
}
FFriendsChatStyle& FFriendsChatStyle::SetAdminChatColor(const FLinearColor& InFontColor)
{
AdminChatColor = InFontColor;
return *this;
}
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;
}
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;
}
FFriendsChatStyle& FFriendsChatStyle::SetScrollBorderStyle(const FScrollBoxStyle& InScrollBorderStyle)
{
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;
}
FFriendsChatStyle& FFriendsChatStyle::SetMessageNotificationBrush(const FSlateBrush& Brush)
{
MessageNotificationBrush = Brush;
return *this;
}
FFriendsChatStyle& FFriendsChatStyle::SetMinimizeButtonStyle(const FButtonStyle& Button)
{
FriendsMinimizeButtonStyle = Button;
return *this;
}
FFriendsChatStyle& FFriendsChatStyle::SetMaximizeButtonStyle(const FButtonStyle& Button)
{
FriendsMaximizeButtonStyle = Button;
return *this;
}