You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#jira none #rb Matt.Kuhlenschmidt #preflight 620d2d3f742ffef42025462e [CL 19017117 by Dominik Peacock in ue5-main branch]
38 lines
854 B
C++
38 lines
854 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "Framework/SlateDelegates.h"
|
|
|
|
class SWidget;
|
|
|
|
DECLARE_DELEGATE_OneParam(FOnStatusBarDrawerOpened, FName StatusBarName)
|
|
DECLARE_DELEGATE_OneParam(FOnStatusBarDrawerDismissed, const TSharedPtr<SWidget>&)
|
|
|
|
struct FWidgetDrawerConfig
|
|
{
|
|
FWidgetDrawerConfig(FName InUniqueId)
|
|
: UniqueId(InUniqueId)
|
|
{}
|
|
|
|
FName UniqueId;
|
|
FOnGetContent GetDrawerContentDelegate;
|
|
FOnStatusBarDrawerOpened OnDrawerOpenedDelegate;
|
|
FOnStatusBarDrawerDismissed OnDrawerDismissedDelegate;
|
|
|
|
TSharedPtr<SWidget> CustomWidget;
|
|
FText ButtonText;
|
|
FText ToolTipText;
|
|
const FSlateBrush* Icon;
|
|
|
|
bool operator==(const FName& OtherId) const
|
|
{
|
|
return UniqueId == OtherId;
|
|
}
|
|
|
|
bool operator==(const FWidgetDrawerConfig& Other) const
|
|
{
|
|
return UniqueId == Other.UniqueId;
|
|
}
|
|
}; |