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

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