You've already forked LuckyWorld
optimization some umg
This commit is contained in:
20
Source/LuckyWorldV2/Public/UI/Settings/AllRandomUserWidget.h
Normal file
20
Source/LuckyWorldV2/Public/UI/Settings/AllRandomUserWidget.h
Normal 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();
|
||||
};
|
@ -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();
|
||||
};
|
||||
|
@ -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();
|
||||
};
|
@ -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();
|
||||
};
|
Reference in New Issue
Block a user