5#include "Blueprint/WidgetTree.h"
6#include "Components/TextBlock.h"
7#include "GameFramework/GameModeBase.h"
9#include "Kismet/GameplayStatics.h"
14void UButtonWidget::PostEditChangeChainProperty(FPropertyChangedChainEvent& PropertyChangedEvent)
16 Super::PostEditChangeChainProperty(PropertyChangedEvent);
24 Super::NativeOnInitialized();
36 if (GameModeBase->GetClass()->ImplementsInterface(UPixoCoreInterface::StaticClass()))
39 IPixoCoreInterface::Execute_GetManagerRef(GameModeBase, UHintManager::StaticClass()));
46 IPixoCoreInterface::Execute_GetManagerRef(GameModeBase, UStoryManager::StaticClass()));
58 UE_LOG(LogTemp,
Error, TEXT(
"GameModeBase doesn't implement IPixoCoreInterface"));
71 Super::NativePreConstruct();
109 FSlateFontInfo FontInfo =
BtnName->Font;
141void UButtonWidget::OnHintActivated_Implementation(
bool Activate)
181 UWorld* ThisWorld = GetWorld();
182 if (
SelectSound && ThisWorld && ThisWorld->bAllowAudioPlayback && !ThisWorld->IsNetMode(NM_DedicatedServer))
184 UGameplayStatics::PlaySound2D(ThisWorld,
SelectSound);
192 UWorld* ThisWorld = GetWorld();
193 if (
HoverSound && ThisWorld && ThisWorld->bAllowAudioPlayback && !ThisWorld->IsNetMode(NM_DedicatedServer))
195 UGameplayStatics::PlaySound2D(ThisWorld,
HoverSound);
219 bool StepFound =
false;
220 bool SubStepFound =
false;
264 bool StepFound =
false;
265 bool SubStepFound =
false;
FOnHintActivated OnHintActivated
Event delegate for hint activation.
FOnNewStep OnNewStep
UPROPERTY(BlueprintAssignable, Category = "Story Delegate")
FStoryStep CurrentSubStep
UPROPERTY(BlueprintReadWrite, Replicated)
FOnStoryLoaded OnStoryLoaded
UPROPERTY(BlueprintAssignable, Category = "Story Delegate")
FOnNewSubStep OnNewSubStep
UPROPERTY(BlueprintAssignable, Category = "Story Delegate")
FStoryStep CurrentStep
UPROPERTY(BlueprintReadWrite, Replicated)
FText StepName
UPROPERTY(BlueprintReadWrite, EditAnywhere)