optimization some umg

This commit is contained in:
martinluckyrobots
2025-04-14 19:36:02 +08:00
parent 6a50b86363
commit 144b3e3bce
27 changed files with 414 additions and 10 deletions

View File

@ -0,0 +1,20 @@
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Blueprint/UserWidget.h"
#include "AllRandomUserWidget.generated.h"
/**
*
*/
UCLASS()
class LUCKYWORLDV2_API UAllRandomUserWidget : public UUserWidget
{
GENERATED_BODY()
public:
UFUNCTION(BlueprintCallable, BlueprintImplementableEvent)
void DoOpen();
};

View File

@ -11,6 +11,7 @@ DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FOnOpenMenuStateChanged, bool, Open)
DECLARE_DYNAMIC_MULTICAST_DELEGATE(FOnStartCapture);
DECLARE_DYNAMIC_MULTICAST_DELEGATE(FOnStopCapture);
class UTaskListViewUserWidget;
/**
*
*/
@ -20,6 +21,7 @@ class LUCKYWORLDV2_API UCaptureSettingsUserWidget : public UUserWidget
GENERATED_BODY()
protected:
virtual void NativeConstruct() override;
void OnAnimationFinished(const UWidgetAnimation* Animation);
public:
UPROPERTY(EditAnywhere, BlueprintReadWrite)
@ -38,10 +40,17 @@ public:
UFUNCTION(BlueprintCallable)
void ToggleMenu();
public:
UFUNCTION(BlueprintCallable, BlueprintImplementableEvent)
UFUNCTION(BlueprintCallable)
void DoStopCapture();
UFUNCTION(BlueprintCallable)
void ToggleRandomPannel();
UFUNCTION(BlueprintCallable)
void BPRefreshTaskList();
public:
UFUNCTION(BlueprintCallable, BlueprintImplementableEvent)
void BPOnRandomMeshesUpdated();
@ -56,4 +65,10 @@ public:
UFUNCTION(BlueprintCallable, BlueprintImplementableEvent)
void BPChangeCaptureState();
UFUNCTION(BlueprintPure, BlueprintImplementableEvent)
bool CheckIsStopAnim(const UWidgetAnimation* Animation);
UFUNCTION(BlueprintPure, BlueprintImplementableEvent)
UTaskListViewUserWidget* GetTaskListViewUserWidget();
};

View File

@ -0,0 +1,20 @@
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Blueprint/UserWidget.h"
#include "SelectGoalUserWidget.generated.h"
/**
*
*/
UCLASS()
class LUCKYWORLDV2_API USelectGoalUserWidget : public UUserWidget
{
GENERATED_BODY()
public:
UFUNCTION(BlueprintCallable, BlueprintImplementableEvent)
void DoAutoConfirm();
};

View File

@ -0,0 +1,21 @@
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Blueprint/UserWidget.h"
#include "TaskListViewUserWidget.generated.h"
class UListView;
/**
*
*/
UCLASS()
class LUCKYWORLDV2_API UTaskListViewUserWidget : public UUserWidget
{
GENERATED_BODY()
public:
UFUNCTION(BlueprintPure, BlueprintImplementableEvent)
UListView* GetTaskListView();
};