2014-12-07 19:09:38 -05:00
|
|
|
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
2014-03-14 14:13:41 -04:00
|
|
|
|
|
|
|
|
#include "FriendsAndChatPrivatePCH.h"
|
|
|
|
|
|
2014-09-21 20:35:48 -04:00
|
|
|
|
2014-03-14 14:13:41 -04:00
|
|
|
const FName FFriendsAndChatStyle::TypeName( TEXT("FFriendsAndChatStyle") );
|
|
|
|
|
|
2014-09-21 20:35:48 -04:00
|
|
|
|
2014-10-20 08:14:45 -04:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetFriendsListOpenButtonStyle(const FButtonStyle& ButtonStyle)
|
|
|
|
|
{
|
|
|
|
|
FriendListOpenButtonStyle = ButtonStyle;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2014-11-06 15:17:11 -05:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetFriendsListClosedButtonStyle(const FButtonStyle& ButtonStyle)
|
|
|
|
|
{
|
|
|
|
|
FriendListCloseButtonStyle = ButtonStyle;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2014-11-17 09:12:20 -05:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetAddFriendCloseButtonStyle(const FButtonStyle& InAddFriendCloseButtonStyle)
|
|
|
|
|
{
|
|
|
|
|
AddFriendCloseButtonStyle = InAddFriendCloseButtonStyle;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2015-01-12 06:27:24 -05:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetFriendComboBackgroundLeftBrush(const FSlateBrush& BrushStyle)
|
|
|
|
|
{
|
|
|
|
|
FriendComboBackgroundLeftBrush = BrushStyle;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetFriendComboBackgroundRightBrush(const FSlateBrush& BrushStyle)
|
|
|
|
|
{
|
|
|
|
|
FriendComboBackgroundRightBrush = BrushStyle;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2015-01-22 11:12:18 -05:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetFriendComboBackgroundLeftFlippedBrush(const FSlateBrush& BrushStyle)
|
2014-12-02 07:42:26 -05:00
|
|
|
{
|
2015-01-22 11:12:18 -05:00
|
|
|
FriendComboBackgroundLeftFlippedBrush = BrushStyle;
|
2014-12-02 07:42:26 -05:00
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2015-01-22 11:12:18 -05:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetFriendComboBackgroundRightFlippedBrush(const FSlateBrush& BrushStyle)
|
2014-12-02 07:42:26 -05:00
|
|
|
{
|
2015-01-22 11:12:18 -05:00
|
|
|
FriendComboBackgroundRightFlippedBrush = BrushStyle;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetAddFriendButtonContentBrush(const FSlateBrush& BrushStyle)
|
|
|
|
|
{
|
|
|
|
|
AddFriendButtonContentBrush = BrushStyle;
|
2014-12-02 07:42:26 -05:00
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2015-03-13 08:26:18 -04:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetAddFriendButtonContentHoveredBrush(const FSlateBrush& BrushStyle)
|
|
|
|
|
{
|
|
|
|
|
AddFriendButtonContentHoveredBrush = BrushStyle;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2014-12-17 11:22:54 -05:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetFriendGeneralButtonStyle(const FButtonStyle& ButtonStyle)
|
|
|
|
|
{
|
|
|
|
|
FriendGeneralButtonStyle = ButtonStyle;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2015-03-13 08:26:18 -04:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetButtonInvertedForegroundColor(const FSlateColor& Value)
|
|
|
|
|
{
|
|
|
|
|
ButtonInvertedForegroundColor = Value;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetButtonForegroundColor(const FSlateColor& Value)
|
|
|
|
|
{
|
|
|
|
|
ButtonForegroundColor = Value;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2014-12-17 11:22:54 -05:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetFriendListActionButtonStyle(const FButtonStyle& ButtonStyle)
|
2014-10-20 08:14:45 -04:00
|
|
|
{
|
|
|
|
|
FriendListActionButtonStyle = ButtonStyle;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2014-11-06 15:17:11 -05:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetFriendsListCriticalButtonStyle(const FButtonStyle& ButtonStyle)
|
2014-10-20 08:14:45 -04:00
|
|
|
{
|
2014-11-06 15:17:11 -05:00
|
|
|
FriendListCriticalButtonStyle = ButtonStyle;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2014-11-12 06:43:48 -05:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetFriendsListEmphasisButtonStyle(const FButtonStyle& ButtonStyle)
|
|
|
|
|
{
|
|
|
|
|
FriendListEmphasisButtonStyle = ButtonStyle;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2015-01-12 06:27:24 -05:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetFriendsListComboButtonStyle(const FComboButtonStyle& ButtonStyle)
|
2014-11-12 06:43:48 -05:00
|
|
|
{
|
|
|
|
|
FriendListComboButtonStyle = ButtonStyle;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-04 00:28:16 -05:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetComboItemButtonStyle(const FButtonStyle& ButtonStyle)
|
|
|
|
|
{
|
|
|
|
|
ComboItemButtonStyle = ButtonStyle;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2014-11-06 15:17:11 -05:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetFriendsListItemButtonStyle(const FButtonStyle& ButtonStyle)
|
|
|
|
|
{
|
|
|
|
|
FriendListItemButtonStyle = ButtonStyle;
|
2014-10-20 08:14:45 -04:00
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2014-11-17 09:12:20 -05:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetFriendsListItemButtonSimpleStyle(const FButtonStyle& ButtonStyle)
|
|
|
|
|
{
|
|
|
|
|
FriendListItemButtonSimpleStyle = ButtonStyle;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
2014-10-20 08:14:45 -04:00
|
|
|
|
2015-03-13 08:26:18 -04:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetGlobalChatHeaderBrush(const FSlateBrush& Value)
|
|
|
|
|
{
|
|
|
|
|
GlobalChatHeaderBrush = Value;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-04 00:28:16 -05:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetGlobalChatButtonStyle(const FButtonStyle& ButtonStyle)
|
|
|
|
|
{
|
|
|
|
|
GlobalChatButtonStyle = ButtonStyle;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2014-10-20 08:14:45 -04:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetTitleBarBrush(const FSlateBrush& Brush)
|
|
|
|
|
{
|
|
|
|
|
TitleBarBrush = Brush;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetFriendImageBrush(const FSlateBrush& Brush)
|
|
|
|
|
{
|
|
|
|
|
FriendImageBrush = Brush;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2014-11-06 15:17:11 -05:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetFortniteImageBrush(const FSlateBrush& Brush)
|
|
|
|
|
{
|
|
|
|
|
FortniteImageBrush = Brush;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetLauncherImageBrush(const FSlateBrush& Brush)
|
|
|
|
|
{
|
|
|
|
|
LauncherImageBrush = Brush;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-10 06:44:35 -05:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetUTImageBrush(const FSlateBrush& Brush)
|
|
|
|
|
{
|
|
|
|
|
UTImageBrush = Brush;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2014-10-20 08:14:45 -04:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetFriendsComboDropdownImageBrush(const FSlateBrush& Brush)
|
|
|
|
|
{
|
|
|
|
|
FriendsComboDropdownImageBrush = Brush;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
2014-09-21 20:35:48 -04:00
|
|
|
|
2014-11-12 06:43:48 -05:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetFriendsAddImageBrush(const FSlateBrush& Brush)
|
|
|
|
|
{
|
|
|
|
|
FriendsAddImageBrush = Brush;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2014-11-11 04:54:47 -05:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetFriendsCalloutBrush(const FSlateBrush& Brush)
|
|
|
|
|
{
|
|
|
|
|
FriendsCalloutBrush = Brush;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2014-03-14 14:13:41 -04:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetOfflineBrush(const FSlateBrush& InOffLine)
|
|
|
|
|
{
|
|
|
|
|
OfflineBrush = InOffLine;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2014-09-21 20:35:48 -04:00
|
|
|
|
2014-03-14 14:13:41 -04:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetOnlineBrush(const FSlateBrush& InOnLine)
|
|
|
|
|
{
|
|
|
|
|
OnlineBrush = InOnLine;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2014-11-06 15:17:11 -05:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetAwayBrush(const FSlateBrush& InAwayBrush)
|
|
|
|
|
{
|
|
|
|
|
AwayBrush = InAwayBrush;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2014-03-14 14:13:41 -04:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetBackgroundBrush(const FSlateBrush& InBackground)
|
|
|
|
|
{
|
|
|
|
|
Background = InBackground;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2015-03-13 08:26:18 -04:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetWindowEdgingBrush(const FSlateBrush& Value)
|
|
|
|
|
{
|
|
|
|
|
WindowEdgingBrush = Value;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2014-11-17 09:12:20 -05:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetFriendContainerHeader(const FSlateBrush& InFriendContainerHeader)
|
|
|
|
|
{
|
|
|
|
|
FriendContainerHeader = InFriendContainerHeader;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetFriendListHeader(const FSlateBrush& InFriendListHeader)
|
|
|
|
|
{
|
|
|
|
|
FriendListHeader = InFriendListHeader;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2015-03-13 08:26:18 -04:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetFriendUserHeaderBackground(const FSlateBrush& InFriendUserHeaderBackground)
|
|
|
|
|
{
|
|
|
|
|
FriendUserHeaderBackground = InFriendUserHeaderBackground;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2014-11-17 09:12:20 -05:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetFriendItemSelected(const FSlateBrush& InFriendItemSelected)
|
|
|
|
|
{
|
|
|
|
|
FriendItemSelected = InFriendItemSelected;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2015-01-22 11:12:18 -05:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetChatContainerBackground(const FSlateBrush& InChatContainerBackground)
|
|
|
|
|
{
|
|
|
|
|
ChatContainerBackground = InChatContainerBackground;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2014-11-17 09:12:20 -05:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetFriendContainerBackground(const FSlateBrush& InFriendContainerBackground)
|
|
|
|
|
{
|
2015-01-22 11:12:18 -05:00
|
|
|
FriendsContainerBackground = InFriendContainerBackground;
|
2014-11-17 09:12:20 -05:00
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetAddFriendEditBorder(const FSlateBrush& InAddFriendEditBorder)
|
|
|
|
|
{
|
|
|
|
|
AddFriendEditBorder = InAddFriendEditBorder;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2014-03-14 14:13:41 -04:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetTextStyle(const FTextBlockStyle& InTextStle)
|
|
|
|
|
{
|
|
|
|
|
TextStyle = InTextStle;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetFontStyle(const FSlateFontInfo& InFontStyle)
|
|
|
|
|
{
|
|
|
|
|
FriendsFontStyle = InFontStyle;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2014-11-12 06:43:48 -05:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetFontStyleBold(const FSlateFontInfo& InFontStyle)
|
|
|
|
|
{
|
|
|
|
|
FriendsFontStyleBold = InFontStyle;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2015-03-13 08:26:18 -04:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetFontStyleUserLarge(const FSlateFontInfo& InFontStyle)
|
2015-02-04 00:28:16 -05:00
|
|
|
{
|
2015-03-13 08:26:18 -04:00
|
|
|
FriendsFontStyleUserLarge = InFontStyle;
|
2015-02-04 00:28:16 -05:00
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2014-10-20 08:14:45 -04:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetFontStyleSmall(const FSlateFontInfo& FontStyle)
|
2014-03-14 14:13:41 -04:00
|
|
|
{
|
2014-10-20 08:14:45 -04:00
|
|
|
FriendsFontStyleSmall = FontStyle;
|
2014-03-14 14:13:41 -04:00
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2014-11-12 06:43:48 -05:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetFontStyleSmallBold(const FSlateFontInfo& FontStyle)
|
|
|
|
|
{
|
|
|
|
|
FriendsFontStyleSmallBold = FontStyle;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2014-11-24 12:50:25 -05:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetChatFontStyleEntry(const FSlateFontInfo& InFontStyle)
|
|
|
|
|
{
|
|
|
|
|
ChatFontStyleEntry = InFontStyle;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2014-11-06 15:17:11 -05:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetDefaultFontColor(const FLinearColor& InFontColor)
|
2014-03-14 14:13:41 -04:00
|
|
|
{
|
2014-11-06 15:17:11 -05:00
|
|
|
DefaultFontColor = InFontColor;
|
2014-03-14 14:13:41 -04:00
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2015-03-13 08:26:18 -04:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetDefaultDullFontColor(const FLinearColor& InFontColor)
|
|
|
|
|
{
|
|
|
|
|
DefaultDullFontColor = InFontColor;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2014-11-06 15:17:11 -05:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetDefaultChatColor(const FLinearColor& InFontColor)
|
2014-03-14 14:13:41 -04:00
|
|
|
{
|
2014-11-06 15:17:11 -05:00
|
|
|
DefaultChatColor = InFontColor;
|
2014-03-14 14:13:41 -04:00
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2014-11-06 15:17:11 -05:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetWhisplerChatColor(const FLinearColor& InFontColor)
|
2014-03-14 14:13:41 -04:00
|
|
|
{
|
2014-11-06 15:17:11 -05:00
|
|
|
WhisplerChatColor = InFontColor;
|
2014-03-14 14:13:41 -04:00
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2014-11-06 15:17:11 -05:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetPartyChatColor(const FLinearColor& InFontColor)
|
|
|
|
|
{
|
|
|
|
|
PartyChatColor = InFontColor;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
2014-09-21 20:35:48 -04:00
|
|
|
|
2014-11-11 04:54:47 -05:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetNetworkChatColor(const FLinearColor& InFontColor)
|
|
|
|
|
{
|
|
|
|
|
NetworkChatColor = InFontColor;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-04 00:28:16 -05:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetComboItemTextColorNormal(const FLinearColor& InColor)
|
|
|
|
|
{
|
|
|
|
|
ComboItemTextColorNormal = InColor;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetComboItemTextColorHovered(const FLinearColor& InColor)
|
|
|
|
|
{
|
|
|
|
|
ComboItemTextColorHovered = InColor;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetFriendListActionFontColor(const FLinearColor& InColor)
|
|
|
|
|
{
|
|
|
|
|
FriendListActionFontColor = InColor;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2014-11-11 06:34:45 -05:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetChatGlobalBrush(const FSlateBrush& Brush)
|
|
|
|
|
{
|
|
|
|
|
ChatGlobalBrush = Brush;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetChatPartyBrush(const FSlateBrush& Brush)
|
|
|
|
|
{
|
2014-11-11 15:41:34 -05:00
|
|
|
ChatPartyBrush = Brush;
|
2014-11-11 06:34:45 -05:00
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetChatWhisperBrush(const FSlateBrush& Brush)
|
|
|
|
|
{
|
2014-11-11 15:41:34 -05:00
|
|
|
ChatWhisperBrush = Brush;
|
2014-11-11 06:34:45 -05:00
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-10 06:44:35 -05:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetChatInvalidBrush(const FSlateBrush& Brush)
|
|
|
|
|
{
|
|
|
|
|
ChatInvalidBrush = Brush;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2014-11-17 09:12:20 -05:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetAddFriendEditableTextStyle(const FEditableTextBoxStyle& InEditableTextStyle)
|
|
|
|
|
{
|
|
|
|
|
AddFriendEditableTextStyle = InEditableTextStyle;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-04 00:28:16 -05:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetComboItemTextStyle(const FTextBlockStyle& InTextStyle)
|
|
|
|
|
{
|
|
|
|
|
ComboItemTextStyle = InTextStyle;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2015-03-13 08:26:18 -04:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetFriendsComboTextStyle(const FTextBlockStyle& InTextStyle)
|
|
|
|
|
{
|
|
|
|
|
FriendsComboTextStyle = InTextStyle;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2014-11-24 12:50:25 -05:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetChatEditableTextStyle(const FEditableTextBoxStyle& InEditableTextStyle)
|
|
|
|
|
{
|
|
|
|
|
ChatEditableTextStyle = InEditableTextStyle;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2014-11-17 09:12:20 -05:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetFriendCheckboxStyle(const FCheckBoxStyle& InFriendCheckboxStyle)
|
|
|
|
|
{
|
|
|
|
|
FriendCheckboxStyle = InFriendCheckboxStyle;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2014-12-02 07:42:26 -05:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetStatusButtonSize(const FVector2D& InStatusButtonSize)
|
2014-11-24 12:56:20 -05:00
|
|
|
{
|
2014-12-02 07:42:26 -05:00
|
|
|
StatusButtonSize = InStatusButtonSize;
|
2014-11-24 12:56:20 -05:00
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2015-01-22 11:12:18 -05:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetActionComboButtonSize(const FVector2D& InActionComboButtonSize)
|
|
|
|
|
{
|
|
|
|
|
ActionComboButtonSize = InActionComboButtonSize;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2015-03-13 08:26:18 -04:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetActionComboButtonStyle(const FComboButtonStyle& InActionComboButtonStyle)
|
|
|
|
|
{
|
|
|
|
|
ActionComboButtonStyle = InActionComboButtonStyle;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetActionComboButtonTextStyle(const FTextBlockStyle& InActionComboButtonTextStyle)
|
|
|
|
|
{
|
|
|
|
|
ActionComboButtonTextStyle = InActionComboButtonTextStyle;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-04 00:28:16 -05:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetUserPresenceImageSize(const FVector2D& InUserPresenceImageSize)
|
|
|
|
|
{
|
|
|
|
|
UserPresenceImageSize = InUserPresenceImageSize;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2014-11-28 12:16:38 -05:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetBorderPadding(const FMargin& Padding)
|
|
|
|
|
{
|
|
|
|
|
BorderPadding = Padding;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-04 00:28:16 -05:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetUserHeaderPadding(const FMargin& InUserHeaderPadding)
|
|
|
|
|
{
|
|
|
|
|
UserHeaderPadding = InUserHeaderPadding;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2014-11-28 12:16:38 -05:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetFriendsListWidth(const float InFriendsListWidth)
|
|
|
|
|
{
|
|
|
|
|
FriendsListWidth = InFriendsListWidth;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2014-12-17 12:42:40 -05:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetChatListPadding(const float InChatListPadding)
|
2014-12-02 09:42:28 -05:00
|
|
|
{
|
2014-12-17 12:42:40 -05:00
|
|
|
ChatListPadding = InChatListPadding;
|
2014-12-02 09:42:28 -05:00
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2014-11-25 05:39:51 -05:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetChatBackgroundBrush(const FSlateBrush& InChatBackgroundBrush)
|
|
|
|
|
{
|
|
|
|
|
ChatBackgroundBrush = InChatBackgroundBrush;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2015-03-13 08:26:18 -04:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetChatBubbleBackgroundBrush(const FSlateBrush& Value)
|
|
|
|
|
{
|
|
|
|
|
ChatBubbleBackgroundBrush = Value;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetChatBubbleLeftCalloutBrush(const FSlateBrush& Value)
|
|
|
|
|
{
|
|
|
|
|
ChatBubbleLeftCallout = Value;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetChatBubbleRightCalloutBrush(const FSlateBrush& Value)
|
|
|
|
|
{
|
|
|
|
|
ChatBubbleRightCallout = Value;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetChatFooterBrush(const FSlateBrush& Value)
|
|
|
|
|
{
|
|
|
|
|
ChatFooterBrush = Value;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2014-11-26 17:21:00 -05:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetChatChannelsBackgroundBrush(const FSlateBrush& InChatChannelsBackgroundBrush)
|
|
|
|
|
{
|
|
|
|
|
ChatChannelsBackgroundBrush = InChatChannelsBackgroundBrush;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetChatOptionsBackgroundBrush(const FSlateBrush& InChatOptionsBackgroundBrush)
|
|
|
|
|
{
|
|
|
|
|
ChatOptionsBackgroundBrush = InChatOptionsBackgroundBrush;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2014-12-10 13:14:16 -05:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetScrollbarStyle(const FScrollBarStyle& InScrollBarStyle)
|
|
|
|
|
{
|
|
|
|
|
ScrollBarStyle = InScrollBarStyle;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetWindowStyle(const FWindowStyle& InStyle)
|
|
|
|
|
{
|
|
|
|
|
WindowStyle = InStyle;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-04 00:28:16 -05:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetComboMenuPadding(const FMargin& InPadding)
|
|
|
|
|
{
|
|
|
|
|
ComboMenuPadding = InPadding;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetComboItemPadding(const FMargin& InPadding)
|
|
|
|
|
{
|
|
|
|
|
ComboItemPadding = InPadding;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetComboItemContentPadding(const FMargin& InPadding)
|
|
|
|
|
{
|
|
|
|
|
ComboItemContentPadding = InPadding;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetHasUserHeader(bool InHasUserHeader)
|
|
|
|
|
{
|
|
|
|
|
HasUserHeader = InHasUserHeader;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2015-03-13 08:26:18 -04:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetChatWindowStyle(const EChatChannelStyle::Type Value)
|
|
|
|
|
{
|
|
|
|
|
ChatChannelStyle = Value;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2015-04-02 11:07:03 -04:00
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetClanDetailsBrush(const FSlateBrush& Brush)
|
|
|
|
|
{
|
|
|
|
|
ClanDetailsBrush = Brush;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FFriendsAndChatStyle& FFriendsAndChatStyle::SetClanMembersBrush(const FSlateBrush& Brush)
|
|
|
|
|
{
|
|
|
|
|
ClanMembersBrush = Brush;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
2015-02-04 00:28:16 -05:00
|
|
|
|
2014-03-14 14:13:41 -04:00
|
|
|
const FFriendsAndChatStyle& FFriendsAndChatStyle::GetDefault()
|
|
|
|
|
{
|
|
|
|
|
static FFriendsAndChatStyle Default;
|
|
|
|
|
return Default;
|
|
|
|
|
}
|
2014-11-25 05:39:51 -05:00
|
|
|
|
2014-12-02 09:42:28 -05:00
|
|
|
/**
|
|
|
|
|
Module style set
|
|
|
|
|
*/
|
|
|
|
|
TSharedPtr< FSlateStyleSet > FFriendsAndChatModuleStyle::FriendsAndChatModuleStyleInstance = NULL;
|
|
|
|
|
|
|
|
|
|
void FFriendsAndChatModuleStyle::Initialize(FFriendsAndChatStyle FriendStyle)
|
|
|
|
|
{
|
|
|
|
|
if ( !FriendsAndChatModuleStyleInstance.IsValid() )
|
|
|
|
|
{
|
|
|
|
|
FriendsAndChatModuleStyleInstance = Create(FriendStyle);
|
|
|
|
|
FSlateStyleRegistry::RegisterSlateStyle( *FriendsAndChatModuleStyleInstance );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void FFriendsAndChatModuleStyle::Shutdown()
|
|
|
|
|
{
|
|
|
|
|
FSlateStyleRegistry::UnRegisterSlateStyle( *FriendsAndChatModuleStyleInstance );
|
|
|
|
|
ensure( FriendsAndChatModuleStyleInstance.IsUnique() );
|
|
|
|
|
FriendsAndChatModuleStyleInstance.Reset();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FName FFriendsAndChatModuleStyle::GetStyleSetName()
|
|
|
|
|
{
|
|
|
|
|
static FName StyleSetName(TEXT("FriendsAndChat"));
|
|
|
|
|
return StyleSetName;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
TSharedRef< FSlateStyleSet > FFriendsAndChatModuleStyle::Create(FFriendsAndChatStyle FriendStyle)
|
|
|
|
|
{
|
|
|
|
|
TSharedRef< FSlateStyleSet > Style = MakeShareable(new FSlateStyleSet("FriendsAndChatStyle"));
|
|
|
|
|
|
2015-03-13 08:26:18 -04:00
|
|
|
const FTextBlockStyle DefaultText = FTextBlockStyle(FriendStyle.TextStyle)
|
2014-12-02 09:42:28 -05:00
|
|
|
.SetFont(FriendStyle.FriendsFontStyleSmall);
|
|
|
|
|
|
|
|
|
|
// Name Style
|
|
|
|
|
const FTextBlockStyle GlobalChatFont = FTextBlockStyle(DefaultText)
|
|
|
|
|
.SetFont(FriendStyle.FriendsFontStyleSmallBold)
|
|
|
|
|
.SetColorAndOpacity(FriendStyle.DefaultChatColor);
|
|
|
|
|
|
|
|
|
|
const FTextBlockStyle PartyChatFont = FTextBlockStyle(DefaultText)
|
|
|
|
|
.SetFont(FriendStyle.FriendsFontStyleSmallBold)
|
|
|
|
|
.SetColorAndOpacity(FriendStyle.PartyChatColor);
|
|
|
|
|
|
|
|
|
|
const FTextBlockStyle WhisperChatFont = FTextBlockStyle(DefaultText)
|
|
|
|
|
.SetFont(FriendStyle.FriendsFontStyleSmallBold)
|
|
|
|
|
.SetColorAndOpacity(FriendStyle.WhisplerChatColor);
|
|
|
|
|
|
|
|
|
|
const FButtonStyle UserNameButton = FButtonStyle()
|
|
|
|
|
.SetNormal(FSlateNoResource())
|
|
|
|
|
.SetPressed(FSlateNoResource())
|
|
|
|
|
.SetHovered(FSlateNoResource());
|
|
|
|
|
|
|
|
|
|
const FHyperlinkStyle GlobalChatHyperlink = FHyperlinkStyle()
|
|
|
|
|
.SetUnderlineStyle(UserNameButton)
|
|
|
|
|
.SetTextStyle(GlobalChatFont)
|
|
|
|
|
.SetPadding(FMargin(0.0f));
|
|
|
|
|
|
|
|
|
|
const FHyperlinkStyle PartyChatHyperlink = FHyperlinkStyle()
|
|
|
|
|
.SetUnderlineStyle(UserNameButton)
|
|
|
|
|
.SetTextStyle(PartyChatFont)
|
|
|
|
|
.SetPadding(FMargin(0.0f));
|
|
|
|
|
|
|
|
|
|
const FHyperlinkStyle WhisperChatHyperlink = FHyperlinkStyle()
|
|
|
|
|
.SetUnderlineStyle(UserNameButton)
|
|
|
|
|
.SetTextStyle(WhisperChatFont)
|
|
|
|
|
.SetPadding(FMargin(0.0f));
|
|
|
|
|
|
2015-03-13 08:26:18 -04:00
|
|
|
const FHyperlinkStyle DefaultChatHyperlink = FHyperlinkStyle()
|
|
|
|
|
.SetUnderlineStyle(UserNameButton)
|
|
|
|
|
.SetTextStyle(DefaultText)
|
|
|
|
|
.SetPadding(FMargin(0.0f));
|
|
|
|
|
|
|
|
|
|
Style->Set("UserNameTextStyle.Default", DefaultText);
|
|
|
|
|
|
2014-12-02 09:42:28 -05:00
|
|
|
Style->Set("UserNameTextStyle.GlobalHyperlink", GlobalChatHyperlink);
|
|
|
|
|
Style->Set("UserNameTextStyle.PartyHyperlink", PartyChatHyperlink);
|
|
|
|
|
Style->Set("UserNameTextStyle.Whisperlink", WhisperChatHyperlink);
|
2015-03-13 08:26:18 -04:00
|
|
|
Style->Set("UserNameTextStyle.DefaultHyperlink", DefaultChatHyperlink);
|
2014-12-02 09:42:28 -05:00
|
|
|
Style->Set("UserNameTextStyle.GlobalTextStyle", GlobalChatFont);
|
|
|
|
|
Style->Set("UserNameTextStyle.PartyTextStyle", PartyChatFont);
|
|
|
|
|
Style->Set("UserNameTextStyle.WhisperTextStyle", WhisperChatFont);
|
|
|
|
|
|
2015-03-13 08:26:18 -04:00
|
|
|
Style->Set("MessageBreak", FTextBlockStyle(DefaultText)
|
|
|
|
|
.SetFont(FSlateFontInfo(
|
|
|
|
|
FriendStyle.FriendsFontStyleSmall.FontObject,
|
|
|
|
|
6,
|
|
|
|
|
FriendStyle.FriendsFontStyleSmall.TypefaceFontName
|
|
|
|
|
)));
|
|
|
|
|
|
2014-12-02 09:42:28 -05:00
|
|
|
return Style;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void FFriendsAndChatModuleStyle::ReloadTextures()
|
|
|
|
|
{
|
|
|
|
|
FSlateApplication::Get().GetRenderer()->ReloadTextureResources();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const ISlateStyle& FFriendsAndChatModuleStyle::Get()
|
|
|
|
|
{
|
|
|
|
|
return *FriendsAndChatModuleStyleInstance;
|
|
|
|
|
}
|