31 lines
846 B
C++
31 lines
846 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CommonActionWidget.h"
|
|
#include "LyraActionWidget.generated.h"
|
|
|
|
class UEnhancedInputLocalPlayerSubsystem;
|
|
class UInputAction;
|
|
|
|
/** An action widget that will get the icon of key that is currently assigned to the common input action on this widget */
|
|
UCLASS(BlueprintType, Blueprintable)
|
|
class ULyraActionWidget : public UCommonActionWidget
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
public:
|
|
|
|
//~ Begin UCommonActionWidget interface
|
|
virtual FSlateBrush GetIcon() const override;
|
|
//~ End of UCommonActionWidget interface
|
|
|
|
/** The Enhanced Input Action that is associated with this Common Input action. */
|
|
UPROPERTY(BlueprintReadOnly, EditAnywhere)
|
|
const TObjectPtr<UInputAction> AssociatedInputAction;
|
|
|
|
private:
|
|
|
|
UEnhancedInputLocalPlayerSubsystem* GetEnhancedInputSubsystem() const;
|
|
|
|
}; |