Files
UnrealEngineUWP/Engine/Source/Developer/Android/AndroidPlatformEditor/Private/AndroidLicenseDialog.h
Juan Canada 2ecf4f9708 Merging //UE4/Dev-Main@10877709 to Dev-RenderPlat-Staging(//UE4/Dev-Rendering)
#rnx
#rb none

[CL 10895568 by Juan Canada in Dev-RenderPlat-Staging branch]
2020-01-07 13:45:01 -05:00

46 lines
892 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Input/Reply.h"
#include "Widgets/DeclarativeSyntaxSupport.h"
#include "Widgets/SCompoundWidget.h"
#include "Misc/SecureHash.h"
class SScrollBox;
/**
* Credit screen widget that displays a scrolling list contributors.
*/
class SAndroidLicenseDialog : public SCompoundWidget
{
public:
SLATE_BEGIN_ARGS( SAndroidLicenseDialog )
{}
SLATE_END_ARGS()
/**
* Constructs the credits screen widgets
*/
void Construct(const FArguments& InArgs);
bool HasLicense();
void SetLicenseAcceptedCallback(const FSimpleDelegate& InOnLicenseAccepted);
private:
bool bLicenseValid;
FReply OnAgree();
FReply OnCancel();
FSHAHash LicenseHash;
/** The widget that scrolls the license text */
TSharedPtr<SScrollBox> ScrollBox;
FSimpleDelegate OnLicenseAccepted;
};