mirror of
https://github.com/Ed94/Cog.git
synced 2026-07-11 12:21:24 -07:00
42 lines
861 B
C++
42 lines
861 B
C++
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "CogWindow.h"
|
|
#include "CogInjectActionInfo.h"
|
|
#include "CogInputWindow_Actions.generated.h"
|
|
|
|
class UInputAction;
|
|
class UCogInputDataAsset_Actions;
|
|
|
|
UCLASS(Config = Cog)
|
|
class COGINPUT_API UCogInputWindow_Actions : public UCogWindow
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
public:
|
|
|
|
TWeakObjectPtr<UCogInputDataAsset_Actions> ActionsAsset;
|
|
|
|
protected:
|
|
|
|
void RenderHelp();
|
|
|
|
virtual void PreRender(ImGuiWindowFlags& WindowFlags) override;
|
|
|
|
virtual void RenderContent() override;
|
|
|
|
virtual void RenderTick(float DeltaSeconds) override;
|
|
|
|
virtual void DrawAxis(const char* Format, const char* ActionName, float CurrentValue, float* InjectValue);
|
|
|
|
private:
|
|
|
|
UPROPERTY(Config)
|
|
float RepeatPeriod = 0.5f;
|
|
|
|
UPROPERTY(Config)
|
|
float RepeatTime = 0.0f;
|
|
|
|
TArray<FCogInjectActionInfo> Actions;
|
|
};
|