Optimize some WB_GameWidget codes and Gameinstance codes

This commit is contained in:
martinluckyrobots
2025-04-04 10:21:44 +08:00
parent 0a4ec92d9a
commit 3eb18f4d20
25 changed files with 62 additions and 6 deletions

View File

@ -24,6 +24,41 @@ public:
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Config")
UDataTable* LevelDataTable;
//public:
// bool bIsFirstOpenGame;
//
// bool bIsDebug;
// bool bIsWidgetTestMode;
// bool bIsShowPath;
//
//public:
// UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Capture")
// bool bIsCapture;
//
// UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Capture")
// bool bIsCaptureHand;
//
// UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Capture")
// bool bIsCaptureHead;
//
// UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Capture")
// bool bScenarioCapture;
//
// UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Capture")
// bool bIsMouseOpen;
//
// UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Capture")
// bool bIschange;
//
// UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Capture")
// int PerSecond;
//
// UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Capture")
// FTransform TargetPosition;
//
// UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Capture")
// FCaptureSettingsData CaptureSettingsData;
//
public:
UPROPERTY(EditAnywhere, BlueprintReadWrite)
ERobotsName CurrentSelectRobot = ERobotsName::None;
@ -51,7 +86,7 @@ public:
void DoSendMessage(FString SendValue);
UFUNCTION(BlueprintCallable)
void DoLogItemAdd(FString Topic, FString MsgText, int Type, ELogItemType LogItemType);
void DoLogItemAdd(FString Topic, FString MsgText, ELogItemType LogItemType);
UFUNCTION(BlueprintCallable)
void SwitchGamePaused();