66 lines
1.5 KiB
C
Raw Normal View History

2025-04-14 19:36:02 +08:00
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Blueprint/UserWidget.h"
#include "SelectGoalUserWidget.generated.h"
2025-04-17 10:41:19 +08:00
class UComboBoxString;
class UPathfindingSelectorUserWidget;
2025-04-17 13:30:44 +08:00
class USizeBox;
2025-04-14 19:36:02 +08:00
/**
*
*/
UCLASS()
class LUCKYWORLDV2_API USelectGoalUserWidget : public UUserWidget
{
GENERATED_BODY()
2025-04-17 10:41:19 +08:00
protected:
virtual void NativeConstruct() override;
public:
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Config")
UDataTable* AllGoalListDataTable;
UPROPERTY(EditAnywhere, BlueprintReadWrite)
UPathfindingSelectorUserWidget* NavigateSimpleEnvironments;
2025-04-17 13:30:44 +08:00
UPROPERTY(EditAnywhere, BlueprintReadWrite)
UUserWidget* CreatedUserWidget;
public:
FTimerHandle DelayAddGoalTimerHandle;
2025-04-17 10:41:19 +08:00
public:
UPROPERTY(EditAnywhere, BlueprintReadWrite)
bool bInitAddOption;
2025-04-14 19:36:02 +08:00
public:
2025-04-17 13:30:44 +08:00
UFUNCTION(BlueprintCallable)
void DoSelectionChanged(const FString& SelectedItem);
UFUNCTION(BlueprintCallable)
void DoCloseWindow();
UFUNCTION(BlueprintCallable)
2025-04-14 19:36:02 +08:00
void DoAutoConfirm();
2025-04-17 10:41:19 +08:00
2025-04-17 13:30:44 +08:00
UFUNCTION(BlueprintCallable)
void DoAddGoalAndStopTracing();
void DelayAddGoal();
public:
2025-04-17 10:41:19 +08:00
UFUNCTION(BlueprintPure, BlueprintImplementableEvent)
UComboBoxString* GetComboBoxString();
2025-04-17 13:30:44 +08:00
UFUNCTION(BlueprintPure, BlueprintImplementableEvent)
USizeBox* GetSizeBox();
UFUNCTION(BlueprintCallable, BlueprintImplementableEvent)
void DoSendDetail(const FString& Explanationn);
UFUNCTION(BlueprintCallable, BlueprintImplementableEvent)
void DoSaveGoalsBTNClick();
2025-04-14 19:36:02 +08:00
};