EM_Task/UnrealEd/Private/Toolkits/SGlobalOpenAssetDialog.h
Boshuang Zhao 5144a49c9b add
2026-02-13 16:18:33 +08:00

30 lines
846 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"
//////////////////////////////////////////////////////////////////////////
// SGlobalOpenAssetDialog
class SGlobalOpenAssetDialog: public SCompoundWidget
{
public:
SLATE_BEGIN_ARGS(SGlobalOpenAssetDialog) {}
SLATE_END_ARGS()
public:
void Construct(const FArguments& InArgs, FVector2D InSize);
// SWidget interface
virtual FReply OnPreviewKeyDown(const FGeometry& MyGeometry, const FKeyEvent& InKeyEvent) override;
// End of SWidget interface
protected:
void OnAssetSelectedFromPicker(const struct FAssetData& AssetData);
void OnPressedEnterOnAssetsInPicker(const TArray<struct FAssetData>& SelectedAssets);
};