Files
UnrealEngineUWP/Engine/Source/Editor/UnrealEd/Public/AboutScreen.h
louise rasmussen 00de52d020 About Dialog
#JIRA UETOOL-2471
#rb Lauren.Barnes
#lockdown Simon.Tourangeau
#preflight 606b9c057dc01c0001a0b840

#ROBOMERGE-SOURCE: CL 15925807 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v786-15839533)

[CL 15925814 by louise rasmussen in ue5-main branch]
2021-04-05 21:14:48 -04:00

74 lines
1.5 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Layout/Margin.h"
#include "Input/Reply.h"
#include "Widgets/DeclarativeSyntaxSupport.h"
#include "Widgets/SCompoundWidget.h"
class ITableRow;
class SButton;
class STableViewBase;
struct FSlateBrush;
/**
* 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> UEButton;
TSharedPtr<SButton> EpicGamesButton;
/**
* Makes the widget for the checkbox items in the list view
*/
TSharedRef<ITableRow> MakeAboutTextItemWidget(TSharedRef<FLineDefinition> Item, const TSharedRef<STableViewBase>& OwnerTable);
FReply OnUEButtonClicked();
FReply OnEpicGamesButtonClicked();
FReply OnClose();
};