Updated Sisters Quest & Wrapped Text on Selections

This commit is contained in:
Philip W 2023-05-12 13:08:00 +01:00
parent 2c22311c43
commit 3aca076981
6 changed files with 12 additions and 13 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
Content/Dialogue/TextPrompt.uasset (Stored with Git LFS)

Binary file not shown.

View File

@ -96,7 +96,7 @@ void UDialogueNPC::NextDialogue()
GetWorld()->GetTimerManager().PauseTimer(TextAnimationTimerHandle);
DialogueText->SetText(FText::FromString(""));
Choice1Button->SetVisibility(ESlateVisibility::Visible);
Choice2Button->SetVisibility(ESlateVisibility::Visible);
if (Choice2Text->GetText().ToString() != "") Choice2Button->SetVisibility(ESlateVisibility::Visible);
if (Choice3Text->GetText().ToString() != "") Choice3Button->SetVisibility(ESlateVisibility::Visible);
NextArrow->SetVisibility(ESlateVisibility::Hidden);
return;

View File

@ -24,10 +24,6 @@ AInteraction::AInteraction()
void AInteraction::BeginPlay()
{
Super::BeginPlay();
//Character & Camera refs
TempCharacterRef = Cast<ATempCharacter>(GetWorld()->GetFirstPlayerController()->GetCharacter());
MainCamera = Cast<UCameraComponent>(TempCharacterRef->FindComponentByClass<UCameraComponent>());
//Item refs
TargetHealingLocation = HealingItem->GetActorLocation();
@ -91,6 +87,9 @@ void AInteraction::OnInteract()
void AInteraction::RemoveWidget()
{
//Character & Camera refs
TempCharacterRef = Cast<ATempCharacter>(GetWorld()->GetFirstPlayerController()->GetCharacter());
MainCamera = Cast<UCameraComponent>(TempCharacterRef->FindComponentByClass<UCameraComponent>());
bDisableShopDialMove = true;
bisDisabled = true;
//Setting ShopWidgetText back to hidden