Optimize some UI

This commit is contained in:
martinluckyrobots
2025-04-17 23:30:37 +08:00
parent 6198dc374e
commit 3f5bc9e1b1
15 changed files with 210 additions and 11 deletions

View File

@ -6,6 +6,8 @@
#include "Blueprint/UserWidget.h"
#include "AllRandomUserWidget.generated.h"
class UWrapBox;
class UObjectsListUserWidget;
/**
*
*/
@ -13,8 +15,25 @@ UCLASS()
class LUCKYWORLDV2_API UAllRandomUserWidget : public UUserWidget
{
GENERATED_BODY()
protected:
virtual void NativeConstruct() override;
public:
UFUNCTION(BlueprintCallable, BlueprintImplementableEvent)
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Config")
TSubclassOf<UObjectsListUserWidget> ObjectsListUserWidgetClass;
public:
UFUNCTION(BlueprintCallable)
void DoAllRandomMenuStateChanged(bool open);
UFUNCTION(BlueprintCallable)
void DoUpdateItemList(EItemCategory ItemCategory);
UFUNCTION(BlueprintCallable)
void DoOpen();
public:
UFUNCTION(BlueprintPure, BlueprintImplementableEvent)
UWrapBox* GetWrapBox();
};