RealtimeStyleTransferRuntime/Source/LyraGame/UI/Foundation/LyraActionWidget.h

31 lines
846 B
C
Raw Normal View History

2022-09-13 07:18:28 +00:00
// 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;
};