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"
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
UCLASS()
|
|
|
|
class LUCKYROBOTS_API UGameUserWidget : public UUserWidget
|
|
|
|
{
|
|
|
|
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;
|
|
|
|
public:
|
|
|
|
UFUNCTION(BlueprintCallable)
|
|
|
|
void DoWaitSecond();
|
|
|
|
|
|
|
|
void UpdateDownCount();
|
|
|
|
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-10 13:30:13 +08:00
|
|
|
UFUNCTION(BlueprintCallable, BlueprintImplementableEvent)
|
2025-04-03 10:13:55 +08:00
|
|
|
void DoRefreshListView();
|
|
|
|
};
|