Updated Quest UI to Display Tasks
This commit is contained in:
parent
3a99e71bde
commit
af86084f3e
BIN
Content/Blueprints/Quest_UI/Quest_UI.uasset
(Stored with Git LFS)
BIN
Content/Blueprints/Quest_UI/Quest_UI.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Dialogue/DialogueTest.umap
(Stored with Git LFS)
BIN
Content/Dialogue/DialogueTest.umap
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Dialogue/NPCTest.uasset
(Stored with Git LFS)
BIN
Content/Dialogue/NPCTest.uasset
(Stored with Git LFS)
Binary file not shown.
@ -13,7 +13,7 @@ UDialogueNPC::UDialogueNPC()
|
|||||||
// off to improve performance if you don't need them.
|
// off to improve performance if you don't need them.
|
||||||
PrimaryComponentTick.bCanEverTick = true;
|
PrimaryComponentTick.bCanEverTick = true;
|
||||||
|
|
||||||
static ConstructorHelpers::FClassFinder<UUserWidget> DialogueWidgetClass(TEXT("/Game/Dialogue/TextPrompt"));
|
static ConstructorHelpers::FClassFinder<UUserWidget> DialogueWidgetClass(TEXT("/Game/Blueprints/Quest_UI/Quest_UI"));
|
||||||
DialogueWidget = DialogueWidgetClass.Class;
|
DialogueWidget = DialogueWidgetClass.Class;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -11,7 +11,8 @@ UQuestSystem::UQuestSystem()
|
|||||||
// off to improve performance if you don't need them.
|
// off to improve performance if you don't need them.
|
||||||
PrimaryComponentTick.bCanEverTick = true;
|
PrimaryComponentTick.bCanEverTick = true;
|
||||||
|
|
||||||
// ...
|
static ConstructorHelpers::FClassFinder<UUserWidget> QuestWidgetClass(TEXT("/Game/Dialogue/TextPrompt"));
|
||||||
|
QuestWidget = QuestWidgetClass.Class;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -20,7 +21,6 @@ void UQuestSystem::BeginPlay()
|
|||||||
{
|
{
|
||||||
Super::BeginPlay();
|
Super::BeginPlay();
|
||||||
|
|
||||||
// ...
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -30,6 +30,5 @@ void UQuestSystem::TickComponent(float DeltaTime, ELevelTick TickType, FActorCom
|
|||||||
{
|
{
|
||||||
Super::TickComponent(DeltaTime, TickType, ThisTickFunction);
|
Super::TickComponent(DeltaTime, TickType, ThisTickFunction);
|
||||||
|
|
||||||
// ...
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
#include "CoreMinimal.h"
|
#include "CoreMinimal.h"
|
||||||
#include "Components/ActorComponent.h"
|
#include "Components/ActorComponent.h"
|
||||||
|
#include "Components/TextBlock.h"
|
||||||
#include "QuestSystem.generated.h"
|
#include "QuestSystem.generated.h"
|
||||||
|
|
||||||
|
|
||||||
@ -20,6 +21,9 @@ protected:
|
|||||||
// Called when the game starts
|
// Called when the game starts
|
||||||
virtual void BeginPlay() override;
|
virtual void BeginPlay() override;
|
||||||
|
|
||||||
|
UPROPERTY()
|
||||||
|
TSubclassOf<UUserWidget> QuestWidget;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// Called every frame
|
// Called every frame
|
||||||
virtual void TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override;
|
virtual void TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override;
|
||||||
|
Loading…
Reference in New Issue
Block a user