Files
UnrealEngine/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilitiesEditor/Private/SGameplayAttributeGraphPin.h
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

32 lines
713 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Widgets/DeclarativeSyntaxSupport.h"
#include "Widgets/SWidget.h"
#include "SGraphPin.h"
class SGameplayAttributeGraphPin : public SGraphPin
{
public:
SLATE_BEGIN_ARGS(SGameplayAttributeGraphPin) {}
SLATE_END_ARGS()
void Construct(const FArguments& InArgs, UEdGraphPin* InGraphPinObj);
//~ Begin SGraphPin Interface
virtual TSharedRef<SWidget> GetDefaultValueWidget() override;
//~ End SGraphPin Interface
void OnAttributeChanged(FProperty* SelectedAttribute);
FProperty* LastSelectedProperty;
private:
bool GetDefaultValueIsEnabled() const
{
return !GraphPinObj->bDefaultValueIsReadOnly;
}
};