forked from LuckyRobots/LuckyWorldV2
40 lines
850 B
C++
40 lines
850 B
C++
// 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"
|
|
|
|
class UWrapBox;
|
|
class UObjectsListUserWidget;
|
|
/**
|
|
*
|
|
*/
|
|
UCLASS()
|
|
class LUCKYWORLDV2_API UAllRandomUserWidget : public UUserWidget
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
protected:
|
|
virtual void NativeConstruct() override;
|
|
|
|
public:
|
|
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();
|
|
};
|