Files
UnrealEngineUWP/Engine/Source/Editor/UnrealEd/Public/AboutScreen.h
Ben Marsh 149375b14b Update copyright notices to 2015.
[CL 2379638 by Ben Marsh in Main branch]
2014-12-07 19:09:38 -05:00

70 lines
1.5 KiB
C++

// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#pragma once
/**
* About screen contents widget
*/
class SAboutScreen : public SCompoundWidget
{
public:
SLATE_BEGIN_ARGS( SAboutScreen )
{}
SLATE_END_ARGS()
/**
* Constructs the about screen widgets
*/
UNREALED_API void Construct(const FArguments& InArgs);
private:
struct FLineDefinition
{
public:
FText Text;
int32 FontSize;
FLinearColor TextColor;
FMargin Margin;
FLineDefinition( const FText& InText )
: Text( InText )
, FontSize( 9 )
, TextColor( FLinearColor(0.5f, 0.5f, 0.5f) )
, Margin( FMargin(6.f, 0.f, 0.f, 0.f) )
{
}
FLineDefinition( const FText& InText, int32 InFontSize, const FLinearColor& InTextColor, const FMargin& InMargin )
: Text( InText )
, FontSize( InFontSize )
, TextColor( InTextColor )
, Margin( InMargin )
{
}
};
TArray< TSharedRef< FLineDefinition > > AboutLines;
TSharedPtr<SButton> UE4Button;
TSharedPtr<SButton> EpicGamesButton;
TSharedPtr<SButton> FacebookButton;
/**
* Makes the widget for the checkbox items in the list view
*/
TSharedRef<ITableRow> MakeAboutTextItemWidget(TSharedRef<FLineDefinition> Item, const TSharedRef<STableViewBase>& OwnerTable);
const FSlateBrush* GetUE4ButtonBrush() const;
const FSlateBrush* GetEpicGamesButtonBrush() const;
const FSlateBrush* GetFacebookButtonBrush() const;
FReply OnUE4ButtonClicked();
FReply OnEpicGamesButtonClicked();
FReply OnFacebookButtonClicked();
FReply OnClose();
};