Optimizing WB_CaptureSettings

This commit is contained in:
martinluckyrobots
2025-04-11 12:41:50 +08:00
parent 7fd533075c
commit 8d20bf761d
18 changed files with 116 additions and 18 deletions

View File

@ -42,6 +42,9 @@ public:
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Config")
UDataTable* BathroomDataTable;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Config")
TSubclassOf<AActor> TargetSelectorClass;
public:
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Config")
TArray<FString> AlphabetForRandomList;
@ -106,8 +109,6 @@ public:
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Random Mesh")
bool bIsRandomPannel;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Random Mesh")
bool bIsRandomRobotPosition;
public:
UPROPERTY(EditAnywhere, BlueprintReadWrite)
@ -119,9 +120,6 @@ public:
UPROPERTY(EditAnywhere, BlueprintReadWrite)
EQualityEnum CurrentSelectQuality = EQualityEnum::Epic;
UPROPERTY(EditAnywhere, BlueprintReadWrite)
TArray<FGoalsTaskData> TaskList;
UPROPERTY(EditAnywhere, BlueprintReadWrite)
FGoalsTaskData TempTask;
@ -206,6 +204,9 @@ public:
UFUNCTION(BlueprintCallable)
FParsedData DoJsonParse(const FString& JsonString);
UFUNCTION(BlueprintCallable)
void UpdateTargetSelector();
public:
UFUNCTION(BlueprintCallable)
void SetCurrentFolderName(const FString& FolderName);

View File

@ -0,0 +1,29 @@
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "TargetSelector.generated.h"
UCLASS()
class LUCKYROBOTS_API ATargetSelector : public AActor
{
GENERATED_BODY()
public:
// Sets default values for this actor's properties
ATargetSelector();
protected:
// Called when the game starts or when spawned
virtual void BeginPlay() override;
public:
// Called every frame
virtual void Tick(float DeltaTime) override;
public:
UPROPERTY(EditAnywhere, BlueprintReadWrite)
bool bIsTracing = true;
};

View File

@ -4,6 +4,7 @@
#include "CoreMinimal.h"
#include "Blueprint/UserWidget.h"
#include "SharedDef.h"
#include "CaptureSettingsUserWidget.generated.h"
/**
@ -14,4 +15,11 @@ class LUCKYROBOTS_API UCaptureSettingsUserWidget : public UUserWidget
{
GENERATED_BODY()
public:
UPROPERTY(EditAnywhere, BlueprintReadWrite)
bool bIsOpen;
public:
UFUNCTION(BlueprintCallable, BlueprintImplementableEvent)
void BPRefreshTaskList();
};