Files
UnrealEngineUWP/Engine/Source/Developer/FriendsAndChat/Private/FriendsChatStyle.cpp
Nicholas Davies 2dc86e293d [INTEGRATE] merge UE4-Fortnite > UE4 Friends and Chat fixes up to CL 2676817
[CL 2677049 by Nicholas Davies in Main branch]
2015-09-02 11:06:38 -04:00

213 lines
5.1 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;
}
FLinearColor FFriendsChatStyle::GetChannelTextColor(EChatMessageType::Type Channel) const
{
switch (Channel)
{
case EChatMessageType::Global:
return GlobalChatColor;
case EChatMessageType::Party:
return PartyChatColor;
case EChatMessageType::Whisper:
return WhisperChatColor;
default:
return GameChatColor;
}
}