martinluckyrobots 6a50b86363 optimization CaptureSettingsUserWidget GameUserWidget
2025-04-14 13:01:18 +08:00

65 lines
1.4 KiB
C++

// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Blueprint/UserWidget.h"
#include "SharedDef.h"
#include "GameUserWidget.generated.h"
DECLARE_DYNAMIC_MULTICAST_DELEGATE(FOnReset);
class UCaptureSettingsUserWidget;
/**
*
*/
UCLASS()
class LUCKYWORLDV2_API UGameUserWidget : public UUserWidget
{
GENERATED_BODY()
protected:
virtual void NativeConstruct() override;
public:
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;
public:
UPROPERTY(BlueprintCallable, BlueprintAssignable, Category = "Event")
FOnReset OnReset;
public:
UFUNCTION(BlueprintCallable)
void DoWaitSecond();
void UpdateDownCount();
public:
UFUNCTION(BlueprintCallable, BlueprintImplementableEvent)
void DoLogItemAdd(const FString& Topic, const FString& MsgText, ELogItemType LogItemType);
UFUNCTION(BlueprintCallable, BlueprintImplementableEvent)
void DoRefreshListView();
UFUNCTION(BlueprintCallable, BlueprintImplementableEvent)
void DoAutoConfirm();
UFUNCTION(BlueprintPure, BlueprintImplementableEvent)
UCaptureSettingsUserWidget* GetCaptureSettingsUserWidget();
};