Optimizing WB_GameWidget

This commit is contained in:
martinluckyrobots
2025-04-10 13:30:13 +08:00
parent 55fabb31e8
commit d188cb846e
15 changed files with 99 additions and 39 deletions

View File

@ -19,9 +19,32 @@ protected:
virtual void NativeConstruct() override;
public:
UFUNCTION(BlueprintImplementableEvent)
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(BlueprintImplementableEvent)
UFUNCTION(BlueprintCallable, BlueprintImplementableEvent)
void DoRefreshListView();
};