// 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" /** * */ UCLASS() class LUCKYROBOTS_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: 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(); };