Bugfix Getting Wrong Widget for Dialogue
This commit is contained in:
parent
5b6461224a
commit
ca87feaf2a
@ -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/Blueprints/Quest_UI/Quest_UI"));
|
static ConstructorHelpers::FClassFinder<UUserWidget> DialogueWidgetClass(TEXT("/Game/Dialogue/TextPrompt"));
|
||||||
DialogueWidget = DialogueWidgetClass.Class;
|
DialogueWidget = DialogueWidgetClass.Class;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ 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"));
|
static ConstructorHelpers::FClassFinder<UUserWidget> QuestWidgetClass(TEXT("/Game/Quest_UI/Quest_UI"));
|
||||||
QuestWidget = QuestWidgetClass.Class;
|
QuestWidget = QuestWidgetClass.Class;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,8 +5,17 @@
|
|||||||
#include "CoreMinimal.h"
|
#include "CoreMinimal.h"
|
||||||
#include "Components/ActorComponent.h"
|
#include "Components/ActorComponent.h"
|
||||||
#include "Components/TextBlock.h"
|
#include "Components/TextBlock.h"
|
||||||
|
#include "Blueprint/UserWidget.h"
|
||||||
#include "QuestSystem.generated.h"
|
#include "QuestSystem.generated.h"
|
||||||
|
|
||||||
|
// UCLASS(ClassGroup=(Custom), meta=(BlueprintSpawnableComponent))
|
||||||
|
// class UQuest : public UObject
|
||||||
|
// {
|
||||||
|
// GENERATED_BODY()
|
||||||
|
//
|
||||||
|
// public:
|
||||||
|
//
|
||||||
|
// };
|
||||||
|
|
||||||
UCLASS(ClassGroup=(Custom), meta=(BlueprintSpawnableComponent))
|
UCLASS(ClassGroup=(Custom), meta=(BlueprintSpawnableComponent))
|
||||||
class THE_TWILIGHT_ABYSS_API UQuestSystem : public UActorComponent
|
class THE_TWILIGHT_ABYSS_API UQuestSystem : public UActorComponent
|
||||||
|
Loading…
Reference in New Issue
Block a user