Files
UnrealEngine/Engine/Plugins/Experimental/SlateIM/Source/SlateIMInGame/Public/SlateIMInGameWidgetModularFeature.h
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

34 lines
852 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Features/IModularFeature.h"
#include "HAL/IConsoleManager.h"
#include "Templates/SubclassOf.h"
#include "UObject/SoftObjectPtr.h"
#define UE_API SLATEIMINGAME_API
class ASlateIMInGameWidgetBase;
namespace SlateIMInGameWidget
{
extern UE_API const FLazyName ModularFeatureName;
}
class FSlateIMInGameWidgetModularFeature : public IModularFeature
{
public:
UE_API FSlateIMInGameWidgetModularFeature(const FString& InPath, const TSubclassOf<ASlateIMInGameWidgetBase>& InWidgetClass);
static TSoftClassPtr<ASlateIMInGameWidgetBase> FindWidgetClass(const FName Type, const FString& InPath);
protected:
void ToggleWidget(UWorld* World);
FString Path;
TSoftClassPtr<ASlateIMInGameWidgetBase> WidgetClass;
FAutoConsoleCommandWithWorld WidgetCommand;
};
#undef UE_API