37 lines
1 KiB
C++
Executable file
37 lines
1 KiB
C++
Executable file
#pragma once
|
|
#include "CoreMinimal.h"
|
|
#include "FSDUserWidget.h"
|
|
#include "Templates/SubclassOf.h"
|
|
#include "TutorialLevelWidget.generated.h"
|
|
|
|
class UTutorialContentWidget;
|
|
|
|
UCLASS(Blueprintable, EditInlineNew)
|
|
class UTutorialLevelWidget : public UFSDUserWidget {
|
|
GENERATED_BODY()
|
|
public:
|
|
protected:
|
|
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
|
|
float DelayBetweenTutorials;
|
|
|
|
public:
|
|
UTutorialLevelWidget();
|
|
UFUNCTION(BlueprintCallable)
|
|
void ShowTutorialWidget(TSubclassOf<UTutorialContentWidget> TutorialWidget, bool ignoreQueue);
|
|
|
|
UFUNCTION(BlueprintCallable)
|
|
void RemoveTutorialWidget(UTutorialContentWidget* TutorialWidget);
|
|
|
|
UFUNCTION(BlueprintCallable)
|
|
void RemoveAllTutorials();
|
|
|
|
protected:
|
|
UFUNCTION(BlueprintCallable)
|
|
void OnTutorialFinished(UTutorialContentWidget* TutorialWidget);
|
|
|
|
public:
|
|
UFUNCTION(BlueprintCallable, BlueprintImplementableEvent)
|
|
void OnNewActiveTutorial(UTutorialContentWidget* Widget);
|
|
|
|
};
|
|
|