You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
- Support brushes in the "Add+" menu by removing the CustomGenerator using SBspPalette which wasn't needed anymore and adding DragHandler support in FPlacementMenuEntry - Added support for short category names to fit buttons. Section headers still use the full names. - Removed mention of dragging from the empty favorites hint text - Removed unused bInUseLongDisplayName from FBuilderInput #jira UE-205201 [CL 34542153 by jeanmichel dignard in ue5-main branch]
54 lines
1.5 KiB
C++
54 lines
1.5 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "Inputs/BuilderInput.h"
|
|
#include "Inputs/BuilderCommandCreationManager.h"
|
|
|
|
UE::DisplayBuilders::FBuilderInput UE::DisplayBuilders::FBuilderInput::NullInput;
|
|
|
|
UE::DisplayBuilders::FBuilderInput::~FBuilderInput()
|
|
{
|
|
if ( !IsNameNone() && FBuilderCommandCreationManager::IsRegistered() )
|
|
{
|
|
FBuilderCommandCreationManager::Get().UnregisterCommandForBuilder( *this );
|
|
}
|
|
}
|
|
|
|
bool UE::DisplayBuilders::FBuilderInput::IsNameNone() const
|
|
{
|
|
return Name.IsNone();
|
|
}
|
|
|
|
void UE::DisplayBuilders::FBuilderInput::InitializeCommandInfo()
|
|
{
|
|
if ( !IsNameNone() )
|
|
{
|
|
FBuilderCommandCreationManager::Get().RegisterCommandForBuilder( *this );
|
|
}
|
|
}
|
|
|
|
UE::DisplayBuilders::FBuilderInput::FBuilderInput(
|
|
FName InName,
|
|
FText InLabel,
|
|
FSlateIcon InIcon,
|
|
EUserInterfaceActionType InUserInterfaceType,
|
|
FText InToolTip,
|
|
FText InDescription,
|
|
TArray<TSharedRef<FInputChord>> InActiveChords ,
|
|
FInputChord InDefaultChords ,
|
|
FName InUiStyle ,
|
|
FName InBindingContext ,
|
|
FName InBundle )
|
|
: FLabelAndIconArgs( InLabel.IsEmpty() ? FText::FromName( InName ) : InLabel, InIcon )
|
|
, Name( InName )
|
|
, UserInterfaceType( InUserInterfaceType )
|
|
, Description( InDescription.IsEmpty() ? Label : InDescription )
|
|
, ActiveChords( InActiveChords )
|
|
, DefaultChords( InDefaultChords )
|
|
, UIStyle( InUiStyle )
|
|
, BindingContext( InBindingContext )
|
|
, Bundle( InBundle )
|
|
, Index( INDEX_NONE )
|
|
, Tooltip( InToolTip.IsEmpty() ? InLabel : InToolTip )
|
|
{
|
|
InitializeCommandInfo();
|
|
} |