2025-04-03 10:13:55 +08:00
|
|
|
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "CoreMinimal.h"
|
|
|
|
#include "Blueprint/UserWidget.h"
|
2025-04-03 15:10:44 +08:00
|
|
|
#include "SharedDef.h"
|
2025-04-03 10:13:55 +08:00
|
|
|
#include "GameUserWidget.generated.h"
|
|
|
|
|
2025-04-14 13:01:18 +08:00
|
|
|
class UCaptureSettingsUserWidget;
|
2025-04-14 19:36:02 +08:00
|
|
|
class USelectGoalUserWidget;
|
|
|
|
class UAllRandomUserWidget;
|
2025-04-03 10:13:55 +08:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
UCLASS()
|
2025-04-12 11:24:29 +08:00
|
|
|
class LUCKYWORLDV2_API UGameUserWidget : public UUserWidget
|
2025-04-03 10:13:55 +08:00
|
|
|
{
|
|
|
|
GENERATED_BODY()
|
|
|
|
|
|
|
|
protected:
|
2025-04-07 11:32:45 +08:00
|
|
|
virtual void NativeConstruct() override;
|
2025-04-03 10:13:55 +08:00
|
|
|
|
|
|
|
public:
|
2025-04-10 13:30:13 +08:00
|
|
|
FTimerHandle UpdateDownCountTimerHandle;
|
|
|
|
|
|
|
|
public:
|
|
|
|
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
|
|
|
bool bIsCrash;
|
|
|
|
|
|
|
|
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
|
|
|
bool bIsGoalMenuVis;
|
|
|
|
|
|
|
|
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
|
|
|
bool bIsTracing;
|
|
|
|
|
|
|
|
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
|
|
|
int32 DownCount = 0;
|
|
|
|
|
|
|
|
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
|
|
|
FString DownCountStr;
|
2025-04-14 13:01:18 +08:00
|
|
|
|
2025-04-10 13:30:13 +08:00
|
|
|
public:
|
|
|
|
UFUNCTION(BlueprintCallable)
|
|
|
|
void DoWaitSecond();
|
|
|
|
|
2025-04-14 19:36:02 +08:00
|
|
|
UFUNCTION(BlueprintCallable)
|
|
|
|
void ToggleHide();
|
|
|
|
|
|
|
|
UFUNCTION(BlueprintCallable)
|
|
|
|
void ToggleTestMode();
|
|
|
|
|
|
|
|
UFUNCTION(BlueprintCallable)
|
|
|
|
void DoCapture();
|
|
|
|
|
|
|
|
UFUNCTION(BlueprintCallable)
|
|
|
|
void DoAutoConfirm();
|
|
|
|
|
|
|
|
UFUNCTION(BlueprintCallable)
|
|
|
|
void DoReset();
|
|
|
|
|
|
|
|
UFUNCTION(BlueprintCallable)
|
|
|
|
void DoExit();
|
|
|
|
|
|
|
|
UFUNCTION(BlueprintCallable)
|
|
|
|
void SwitchGamePaused();
|
|
|
|
|
|
|
|
UFUNCTION(BlueprintCallable)
|
|
|
|
void ToggleShowPath();
|
|
|
|
|
2025-04-10 13:30:13 +08:00
|
|
|
void UpdateDownCount();
|
2025-04-22 23:34:27 +08:00
|
|
|
UFUNCTION()
|
2025-04-15 22:06:41 +08:00
|
|
|
void OnStartTracing();
|
2025-04-22 23:34:27 +08:00
|
|
|
UFUNCTION()
|
2025-04-15 22:06:41 +08:00
|
|
|
void OnEndTracing();
|
|
|
|
|
2025-04-10 13:30:13 +08:00
|
|
|
public:
|
|
|
|
UFUNCTION(BlueprintCallable, BlueprintImplementableEvent)
|
2025-04-04 10:21:44 +08:00
|
|
|
void DoLogItemAdd(const FString& Topic, const FString& MsgText, ELogItemType LogItemType);
|
2025-04-03 10:13:55 +08:00
|
|
|
|
2025-04-14 19:36:02 +08:00
|
|
|
UFUNCTION(BlueprintPure, BlueprintImplementableEvent)
|
|
|
|
UCaptureSettingsUserWidget* GetCaptureSettingsUserWidget();
|
2025-04-11 13:33:10 +08:00
|
|
|
|
2025-04-14 19:36:02 +08:00
|
|
|
UFUNCTION(BlueprintPure, BlueprintImplementableEvent)
|
|
|
|
USelectGoalUserWidget* GetSelectGoalUserWidget();
|
2025-04-14 13:01:18 +08:00
|
|
|
|
|
|
|
UFUNCTION(BlueprintPure, BlueprintImplementableEvent)
|
2025-04-14 19:36:02 +08:00
|
|
|
UAllRandomUserWidget* GetAllRandomUserWidget();
|
2025-04-15 22:06:41 +08:00
|
|
|
|
|
|
|
UFUNCTION(BlueprintCallable, BlueprintImplementableEvent)
|
|
|
|
void BPPlayShowTipAnimation();
|
2025-04-03 10:13:55 +08:00
|
|
|
};
|