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

@ -203,6 +203,9 @@ public:
UFUNCTION(BlueprintCallable)
void GetMessageParse(FString Json);
UFUNCTION(BlueprintCallable)
FParsedData DoJsonParse(const FString& JsonString);
public:
UFUNCTION(BlueprintCallable)
void SetCurrentFolderName(const FString& FolderName);

View File

@ -79,7 +79,6 @@ public:
void UpdateSelectQuality();
public:
FParsedData DoJsonParse(const FString& JsonString);
void OnMessageDispatchedHandler(const FString& Message);
void DoSendReadyJson();

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();
};