Files
LuckyWorld/Source/LuckyWorldV2/Public/UI/Settings/CaptureSettingsUserWidget.h

75 lines
1.9 KiB
C
Raw Normal View History

// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Blueprint/UserWidget.h"
2025-04-11 12:41:50 +08:00
#include "SharedDef.h"
#include "CaptureSettingsUserWidget.generated.h"
2025-04-11 13:33:10 +08:00
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FOnOpenMenuStateChanged, bool, Open);
DECLARE_DYNAMIC_MULTICAST_DELEGATE(FOnStartCapture);
DECLARE_DYNAMIC_MULTICAST_DELEGATE(FOnStopCapture);
2025-04-11 13:33:10 +08:00
2025-04-14 19:36:02 +08:00
class UTaskListViewUserWidget;
/**
*
*/
UCLASS()
class LUCKYWORLDV2_API UCaptureSettingsUserWidget : public UUserWidget
{
GENERATED_BODY()
2025-04-11 13:33:10 +08:00
protected:
virtual void NativeConstruct() override;
2025-04-14 19:36:02 +08:00
void OnAnimationFinished(const UWidgetAnimation* Animation);
2025-04-11 13:33:10 +08:00
2025-04-11 12:41:50 +08:00
public:
UPROPERTY(EditAnywhere, BlueprintReadWrite)
bool bIsOpen;
2025-04-11 13:33:10 +08:00
UPROPERTY(BlueprintCallable, BlueprintAssignable, Category = "Event")
FOnOpenMenuStateChanged OnOpenMenuStateChanged;
UPROPERTY(BlueprintCallable, BlueprintAssignable, Category = "Event")
FOnStartCapture OnStartCapture;
UPROPERTY(BlueprintCallable, BlueprintAssignable, Category = "Event")
FOnStopCapture OnStopCapture;
2025-04-11 13:33:10 +08:00
public:
UFUNCTION(BlueprintCallable)
void ToggleMenu();
2025-04-14 19:36:02 +08:00
UFUNCTION(BlueprintCallable)
void DoStopCapture();
UFUNCTION(BlueprintCallable)
void ToggleRandomPannel();
UFUNCTION(BlueprintCallable)
2025-04-11 12:41:50 +08:00
void BPRefreshTaskList();
2025-04-11 13:33:10 +08:00
2025-04-14 19:36:02 +08:00
public:
2025-04-11 13:33:10 +08:00
UFUNCTION(BlueprintCallable, BlueprintImplementableEvent)
void BPOnRandomMeshesUpdated();
UFUNCTION(BlueprintCallable, BlueprintImplementableEvent)
void BPSaveSettings();
2025-04-11 13:33:10 +08:00
UFUNCTION(BlueprintCallable, BlueprintImplementableEvent)
void BPLoadSettings();
UFUNCTION(BlueprintCallable, BlueprintImplementableEvent)
void ToggleMenuDisplay();
UFUNCTION(BlueprintCallable, BlueprintImplementableEvent)
void BPChangeCaptureState();
2025-04-14 19:36:02 +08:00
UFUNCTION(BlueprintPure, BlueprintImplementableEvent)
bool CheckIsStopAnim(const UWidgetAnimation* Animation);
UFUNCTION(BlueprintPure, BlueprintImplementableEvent)
UTaskListViewUserWidget* GetTaskListViewUserWidget();
};