You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rnx #rb none #ROBOMERGE-SOURCE: CL 10869241 via CL 10869527 via CL 10869904 #ROBOMERGE-BOT: (v613-10869866) [CL 10870586 by ryan durand in Main branch]
52 lines
1.8 KiB
C++
52 lines
1.8 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "SlateFwd.h"
|
|
#include "UObject/WeakObjectPtr.h"
|
|
#include "Layout/Visibility.h"
|
|
#include "Input/Reply.h"
|
|
#include "Widgets/SWidget.h"
|
|
#include "Framework/SlateDelegates.h"
|
|
#include "IDetailCustomization.h"
|
|
|
|
class IDetailCategoryBuilder;
|
|
class IDetailLayoutBuilder;
|
|
class IPropertyHandle;
|
|
class UAnimStateTransitionNode;
|
|
class UBlendProfile;
|
|
class UEdGraph;
|
|
|
|
class FAnimTransitionNodeDetails : public IDetailCustomization
|
|
{
|
|
public:
|
|
/** Makes a new instance of this detail layout class for a specific detail view requesting it */
|
|
static TSharedRef<IDetailCustomization> MakeInstance();
|
|
|
|
/** IDetailCustomization interface */
|
|
virtual void CustomizeDetails( IDetailLayoutBuilder& DetailBuilder ) override;
|
|
|
|
protected:
|
|
void CreateTransitionEventPropertyWidgets(IDetailCategoryBuilder& TransitionCategory, FString TransitionName);
|
|
|
|
FReply OnClickEditBlendGraph();
|
|
EVisibility GetBlendGraphButtonVisibility(bool bMultiSelect) const;
|
|
|
|
TSharedRef<SWidget> GetWidgetForInlineShareMenu(const TAttribute<FText>& InSharedNameText, const TAttribute<bool>& bInIsCurrentlyShared, FOnClicked PromoteClick, FOnClicked DemoteClick, FOnGetContent GetContentMenu);
|
|
|
|
FReply OnPromoteToSharedClick(bool RuleShare);
|
|
void PromoteToShared(const FText& NewTransitionName, ETextCommit::Type CommitInfo, bool bRuleShare);
|
|
FReply OnUnshareClick(bool bUnshareRule);
|
|
TSharedRef<SWidget> OnGetShareableNodesMenu(bool bShareRules);
|
|
void BecomeSharedWith(UAnimStateTransitionNode* NewNode, bool bShareRules);
|
|
void AssignUniqueColorsToAllSharedNodes(UEdGraph* CurrentGraph);
|
|
|
|
void OnBlendProfileChanged(UBlendProfile* NewProfile, TSharedPtr<IPropertyHandle> ProfileProperty);
|
|
|
|
private:
|
|
TWeakObjectPtr<UAnimStateTransitionNode> TransitionNode;
|
|
TSharedPtr<STextEntryPopup> TextEntryWidget;
|
|
};
|
|
|